Skip to content

Commit

Permalink
begin to introduce custom atlas function
Browse files Browse the repository at this point in the history
  • Loading branch information
PolarBean committed Aug 21, 2024
1 parent 7ef6f0a commit 78ea94a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,6 @@ test_data/tTA_2877_NOP_horizontal_final_2017.json
fileForMessingAround.py

outputs/
test_data/
test/
PyNutil/metadata/annotation_volumes/
5 changes: 5 additions & 0 deletions PyNutil/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ def load_atlas_data(self, atlas_name):
print("atlas labels loaded ✅")
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(
self, non_linear=True, method="all", object_cutoff=0, use_flat=False
):
Expand Down

0 comments on commit 78ea94a

Please sign in to comment.