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
08b8f739
Commit
08b8f739
authored
4 months ago
by
polarbean
Browse files
Options
Downloads
Patches
Plain Diff
removed redundant functions
parent
b9c59e9a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
PyNutil/coordinate_processing.py
+0
-19
0 additions, 19 deletions
PyNutil/coordinate_processing.py
PyNutil/data_analysis.py
+3
-4
3 additions, 4 deletions
PyNutil/data_analysis.py
PyNutil/main.py
+3
-2
3 additions, 2 deletions
PyNutil/main.py
with
6 additions
and
25 deletions
PyNutil/coordinate_processing.py
deleted
100644 → 0
+
0
−
19
View file @
b9c59e9a
from
.coordinate_extraction
import
folder_to_atlas_space
from
.counting_and_load
import
label_points
def
extract_coordinates
(
segmentation_folder
,
alignment_json
,
atlas_labels
,
pixel_id
,
non_linear
,
object_cutoff
,
atlas_volume
,
use_flat
):
return
folder_to_atlas_space
(
segmentation_folder
,
alignment_json
,
atlas_labels
,
pixel_id
,
non_linear
,
object_cutoff
,
atlas_volume
,
use_flat
,
)
def
label_points_group
(
points
,
atlas_volume
):
return
label_points
(
points
,
atlas_volume
,
scale_factor
=
1
)
This diff is collapsed.
Click to expand it.
PyNutil/data_analysis.py
+
3
−
4
View file @
08b8f739
import
pandas
as
pd
from
.counting_and_load
import
pixel_count_per_region
from
.coordinate_processing
import
label_points_group
from
.counting_and_load
import
pixel_count_per_region
,
label_points
def
quantify_labeled_points
(
...
...
@@ -12,8 +11,8 @@ def quantify_labeled_points(
atlas_labels
,
atlas_volume
):
labeled_points_centroids
=
label_points
_group
(
centroids
,
atlas_volume
)
labeled_points
=
label_points
_group
(
pixel_points
,
atlas_volume
)
labeled_points_centroids
=
label_points
(
centroids
,
atlas_volume
)
labeled_points
=
label_points
(
pixel_points
,
atlas_volume
,
scale_factor
=
1
)
per_section_df
=
_quantify_per_section
(
labeled_points
,
...
...
This diff is collapsed.
Click to expand it.
PyNutil/main.py
+
3
−
2
View file @
08b8f739
...
...
@@ -2,9 +2,10 @@ import json
import
os
from
.io.atlas_loader
import
load_atlas_data
,
load_custom_atlas
from
.coordinate_processing
import
extract_coordinates
,
label_points_group
from
.data_analysis
import
quantify_labeled_points
from
.io.file_operations
import
save_analysis_output
from
.coordinate_extraction
import
folder_to_atlas_space
from
.counting_and_load
import
label_points
class
PyNutil
:
...
...
@@ -64,7 +65,7 @@ class PyNutil:
self
.
points_len
,
self
.
centroids_len
,
self
.
segmentation_filenames
,
)
=
extract_coordinates
(
)
=
folder_to_atlas_space
(
self
.
segmentation_folder
,
self
.
alignment_json
,
self
.
atlas_labels
,
...
...
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