Skip to content

Commit 0a39340

Browse files
committed
gene exp reproducibility e2e test
1 parent 428002a commit 0a39340

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

e2e/features/molecular/test_genes.py

+17
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,20 @@ def test_no_probes_found_in_concept():
8585
gene=siibra.vocabularies.GENE_NAMES.G0S2,
8686
)
8787
assert features == []
88+
89+
90+
@xfail_if_allen_api_unavailable
91+
def test_reproducing_query_results():
92+
region = siibra.get_region("julich 2.9", "V1")
93+
features = siibra.features.get(
94+
region, siibra.features.molecular.GeneExpressions,
95+
gene=siibra.vocabularies.GENE_NAMES.GABARAPL2
96+
)
97+
assert len(features) == 1
98+
gene_exp = features[0]
99+
assert set(gene_exp.data['gene']) == {'GABARAPL2'}
100+
assert gene_exp.data.iloc[0]['level'] == 10.1143
101+
assert gene_exp.data.iloc[2]['zscore'] == -0.6653
102+
assert gene_exp.data.iloc[3]['mni_xyz'] == (-6.0, -86.0, 10.0)
103+
assert gene_exp.data.iloc[4]['probe_id'] == 1046316
104+
assert gene_exp.data.iloc[4]['donor_name'] == "H0351.1015"

0 commit comments

Comments
 (0)