Skip to content

Commit

Permalink
Add flat files to test data
Browse files Browse the repository at this point in the history
  • Loading branch information
sharoncy committed Nov 7, 2024
1 parent a23fb79 commit 446b1df
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/test_data/nonlinear_allen_mouse/flat_files/report.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
snr name segmented changed stable%
1 test_s001.png 64578 2991 95%
2 test_s002.png 83702 34124 59%
3 test_s003.png 93593 67152 28%
4 test_s004.png 97022 44431 54%
5 test_s005.png 92810 90411 2%
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion workflows/basic_example_custom_atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
###The atlas_path is the path to the relevant atlas.nrrd
###The label_path is the path to the corresponding atlas .csv
###The object_cutoff is a cut-off for min object size
### get_coordinates, if use_flat=True, place flat files in folder titled "flat_files" at same level as "segmentations" folder

pnt = PyNutil(
segmentation_folder="../tests/test_data/linear_allen_mouse/",
Expand All @@ -20,6 +21,6 @@
atlas_path="../tests/test_data/allen_mouse_2017_atlas/annotation_25_reoriented_2017.nrrd",
label_path="../tests/test_data/allen_mouse_2017_atlas//allen2017_colours.csv",
)
pnt.get_coordinates(object_cutoff=0)
pnt.get_coordinates(object_cutoff=0, use_flat=True)
pnt.quantify_coordinates()
pnt.save_analysis("../test_result/test_linear_allen_mouse")

0 comments on commit 446b1df

Please sign in to comment.