Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyNutil
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Harry Carey
PyNutil
Commits
94901c00
Commit
94901c00
authored
7 months ago
by
Sharon Yates
Browse files
Options
Downloads
Patches
Plain Diff
Minor updates to testing file
Updated the workflow for running a test using a custom atlas
parent
215e4325
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
workflows/basic_example_custom_atlas.py
+6
-4
6 additions, 4 deletions
workflows/basic_example_custom_atlas.py
with
9 additions
and
4 deletions
.gitignore
+
3
−
0
View file @
94901c00
...
@@ -161,3 +161,6 @@ cython_debug/
...
@@ -161,3 +161,6 @@ cython_debug/
#inputs
#inputs
#outputs
test_result/
This diff is collapsed.
Click to expand it.
workflows/
loading
_custom_atlas
es
.py
→
workflows/
basic_example
_custom_atlas.py
+
6
−
4
View file @
94901c00
...
@@ -9,15 +9,17 @@ from PyNutil import PyNutil
...
@@ -9,15 +9,17 @@ from PyNutil import PyNutil
###The segmentations should be images which come out of ilastix, segmenting an object of interest
###The segmentations should be images which come out of ilastix, segmenting an object of interest
###The alignment json should be out of DeepSlice, QuickNII, or VisuAlign, it defines the sections position in an atlas
###The alignment json should be out of DeepSlice, QuickNII, or VisuAlign, it defines the sections position in an atlas
###The colour says which colour is the object you want to quantify in your segmentation. It is defined in RGB
###The colour says which colour is the object you want to quantify in your segmentation. It is defined in RGB
###Finally the atlas name is the relevant atlas from brainglobe_atlasapi you wish to use in Quantification.
###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
pnt
=
PyNutil
(
pnt
=
PyNutil
(
segmentation_folder
=
"
../tests/test_data/nonlinear_allen_mouse/
"
,
segmentation_folder
=
"
../tests/test_data/nonlinear_allen_mouse/
"
,
alignment_json
=
"
../tests/test_data/nonlinear_allen_mouse/alignment.json
"
,
alignment_json
=
"
../tests/test_data/nonlinear_allen_mouse/alignment.json
"
,
colour
=
[
0
,
0
,
0
],
colour
=
[
0
,
0
,
0
],
atlas_path
=
"
/mnt/z/HBP_analytics/PyNutil/metadata/annotation_volume
s/annotation_25_reoriented_2017.nrrd
"
,
atlas_path
=
"
../tests/test_data/allen_mouse_2017_atla
s/annotation_25_reoriented_2017.nrrd
"
,
label_path
=
"
/mnt/z/HBP_analytics/PyNutil/metadata/annotation_volumes
/allen2017_colours.csv
"
,
label_path
=
"
../tests/test_data/allen_mouse_2017_atlas/
/allen2017_colours.csv
"
,
)
)
pnt
.
get_coordinates
(
object_cutoff
=
0
)
pnt
.
get_coordinates
(
object_cutoff
=
0
)
pnt
.
quantify_coordinates
()
pnt
.
quantify_coordinates
()
pnt
.
save_analysis
(
"
../demo_data/
PyNutil
_nonlinear_
noflat_custom
"
)
pnt
.
save_analysis
(
"
../demo_data/
test
_nonlinear_
allen_mouse
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment