Skip to content
Snippets Groups Projects
Commit 78ea94a6 authored by polarbean's avatar polarbean
Browse files

begin to introduce custom atlas function

parent 7ef6f0a4
No related branches found
No related tags found
No related merge requests found
...@@ -167,3 +167,6 @@ test_data/tTA_2877_NOP_horizontal_final_2017.json ...@@ -167,3 +167,6 @@ test_data/tTA_2877_NOP_horizontal_final_2017.json
fileForMessingAround.py fileForMessingAround.py
outputs/ outputs/
test_data/
test/
PyNutil/metadata/annotation_volumes/
\ No newline at end of file
...@@ -146,6 +146,11 @@ class PyNutil: ...@@ -146,6 +146,11 @@ class PyNutil:
print("atlas labels loaded ✅") print("atlas labels loaded ✅")
return atlas_volume, atlas_labels return atlas_volume, atlas_labels
def load_custom_atlas(self, atlas_path, label_path):
atlas_volume = read_atlas_volume(atlas_path)
atlas_labels = pd.read_csv(label_path)
return atlas_volume, atlas_labels
def get_coordinates( def get_coordinates(
self, non_linear=True, method="all", object_cutoff=0, use_flat=False self, non_linear=True, method="all", object_cutoff=0, use_flat=False
): ):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment