Skip to content

Commit

Permalink
add assertions for gene score columns
Browse files Browse the repository at this point in the history
  • Loading branch information
mumichae committed Jan 13, 2025
1 parent 3a64fbb commit 92b9ebf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/preprocessing/test_gene_scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@


def test_mouse(adata_paul15):

assert "S_score" not in adata_paul15.obs.columns
assert "G2M_score" not in adata_paul15.obs.columns
assert "phase" not in adata_paul15.obs.columns

scib.pp.score_cell_cycle(
adata_paul15,
organism="mouse",
)
assert "S_score" in adata_paul15.obs.columns
assert "G2M_score" in adata_paul15.obs.columns
assert "phase" in adata_paul15.obs.columns

scib.pp.score_cell_cycle(
adata_paul15,
organism="mus musculus",
Expand Down

0 comments on commit 92b9ebf

Please sign in to comment.