From 92b9ebf3ea4db128674c5e4889fd3815dbac073c Mon Sep 17 00:00:00 2001 From: Michaela Mueller Date: Mon, 13 Jan 2025 18:50:58 +0100 Subject: [PATCH] add assertions for gene score columns --- tests/preprocessing/test_gene_scoring.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/preprocessing/test_gene_scoring.py b/tests/preprocessing/test_gene_scoring.py index ed815fe4..e3b26135 100644 --- a/tests/preprocessing/test_gene_scoring.py +++ b/tests/preprocessing/test_gene_scoring.py @@ -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",