Commit 0a39340 1 parent 428002a commit 0a39340 Copy full SHA for 0a39340
File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -85,3 +85,20 @@ def test_no_probes_found_in_concept():
85
85
gene = siibra .vocabularies .GENE_NAMES .G0S2 ,
86
86
)
87
87
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"
You can’t perform that action at this time.
0 commit comments