Skip to content

Commit

Permalink
gene exp reproducibility e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmetNSimsek committed Mar 5, 2025
1 parent 428002a commit 0a39340
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions e2e/features/molecular/test_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,20 @@ def test_no_probes_found_in_concept():
gene=siibra.vocabularies.GENE_NAMES.G0S2,
)
assert features == []


@xfail_if_allen_api_unavailable
def test_reproducing_query_results():
region = siibra.get_region("julich 2.9", "V1")
features = siibra.features.get(
region, siibra.features.molecular.GeneExpressions,
gene=siibra.vocabularies.GENE_NAMES.GABARAPL2
)
assert len(features) == 1
gene_exp = features[0]
assert set(gene_exp.data['gene']) == {'GABARAPL2'}
assert gene_exp.data.iloc[0]['level'] == 10.1143
assert gene_exp.data.iloc[2]['zscore'] == -0.6653
assert gene_exp.data.iloc[3]['mni_xyz'] == (-6.0, -86.0, 10.0)
assert gene_exp.data.iloc[4]['probe_id'] == 1046316
assert gene_exp.data.iloc[4]['donor_name'] == "H0351.1015"

0 comments on commit 0a39340

Please sign in to comment.