-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from FZJ-INM1-BDA/bugfix_cellsGenes
bugfix: cortical cell distribution name/feat: add structure attr to gene exp
- Loading branch information
Showing
6 changed files
with
62 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
numpy | ||
requests | ||
nibabel | ||
anytree | ||
nibabel | ||
appdirs | ||
scikit-image | ||
click | ||
neuroglancer-scripts | ||
requests | ||
memoization | ||
neuroglancer-scripts | ||
nilearn | ||
simple-term-menu | ||
pandas | ||
importlib-resources; python_version < "3.7" | ||
typing-extensions; python_version < "3.8" | ||
pydantic==1.8.2 | ||
fpdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import pytest | ||
import siibra | ||
from siibra.features.genes import GeneExpression | ||
|
||
test_params = [ | ||
("hoc1 left", "MAOA") | ||
] | ||
|
||
@pytest.mark.parametrize("region_spec,gene", test_params) | ||
def test_genes(region_spec:str, gene: str): | ||
parc = siibra.parcellations['2.9'] | ||
region = parc.decode_region(region_spec) | ||
features = siibra.get_features(region, "gene", gene=gene) | ||
assert len(features) > 0, f"expecting at least 1 gene feature" | ||
assert all([ | ||
isinstance(f, GeneExpression) for f in features | ||
]), f"expecting all features to be of type GeneExpression" | ||
assert all([ | ||
hasattr(f, 'structure') and hasattr(f, "top_level_structure") for f in features | ||
]), f"expecting all features to have structure and top_level_structure attributes" |