Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NutriMorph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DEBREUVE Eric
NutriMorph
Commits
6c2466b6
Commit
6c2466b6
authored
4 years ago
by
NADAL Morgane
Browse files
Options
Downloads
Patches
Plain Diff
small corrections
parent
ab5192ae
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
features_analysis.py
+6
-3
6 additions, 3 deletions
features_analysis.py
nutrimorph.py
+3
-3
3 additions, 3 deletions
nutrimorph.py
parameters.ini
+8
-3
8 additions, 3 deletions
parameters.ini
with
17 additions
and
9 deletions
features_analysis.py
+
6
−
3
View file @
6c2466b6
...
...
@@ -841,9 +841,12 @@ if __name__ == "__main__":
# selected_features = []
# selected_df = df[selected_features]
## TODO Or use the csv with dropped features
selected_df
=
pd_
.
read_csv
(
f
"
{
save_in
}
\\
df_drop_highly_corr_feat.csv
"
)
# selected_df = pd_.read_csv(f"{save_in}\\df_drop_highly_corr_feat_6H.csv")
## If an error raises, only run the part until FeaturesStatistics included, and then run the last part.
try
:
selected_df
=
pd_
.
read_csv
(
f
"
{
save_in
}
\\
df_drop_highly_corr_feat.csv
"
)
# selected_df = pd_.read_csv(f"{save_in}\\df_drop_highly_corr_feat_6H.csv")
except
:
raise
(
"
Only run the part until FeaturesStatistics included to generate df_drop_highly_corr_feat.csv, and then run the last part.
"
)
## If an error raises, only run the part until FeaturesStatistics included, and then run the last part.
# if other columns need to be dropped:
try
:
...
...
This diff is collapsed.
Click to expand it.
nutrimorph.py
+
3
−
3
View file @
6c2466b6
...
...
@@ -229,8 +229,8 @@ def NutriMorph(data_path: str,
print
(
"
\n
--- Soma Detection
"
)
# Change the soma parameters from micron to pixel dimensions, using the previously determined voxel size
soma_min_area_c
=
in_
.
ToPixel
(
soma_min_area_c
,
size_voxel_in_micron
,
dimension
=
(
0
,
1
))
soma_max_area_c
=
in_
.
ToPixel
(
soma_max_area_c
,
size_voxel_in_micron
,
dimension
=
(
0
,
1
))
soma_min_area_c
=
in_
.
ToPixel
(
soma_min_area_c
,
size_voxel_in_micron
,
dimension
=
(
0
,
1
,
2
))
soma_max_area_c
=
in_
.
ToPixel
(
soma_max_area_c
,
size_voxel_in_micron
,
dimension
=
(
0
,
1
,
2
))
soma_selem_c
=
mp_
.
disk
(
in_
.
ToPixel
(
soma_selem_micron_c
,
size_voxel_in_micron
))
# - Create the maps for enhancing and detecting the soma
...
...
@@ -283,7 +283,7 @@ def NutriMorph(data_path: str,
image_for_ext
[
del_soma
]
=
0
# Change the extensions parameters from micron to pixel dimensions
ext_min_area_c
=
in_
.
ToPixel
(
ext_min_area_c
,
size_voxel_in_micron
,
dimension
=
(
0
,
1
))
ext_min_area_c
=
in_
.
ToPixel
(
ext_min_area_c
,
size_voxel_in_micron
,
dimension
=
(
0
,
1
,
2
))
if
ext_selem_micron_c
==
0
:
ext_selem_pixel_c
=
None
...
...
This diff is collapsed.
Click to expand it.
parameters.ini
+
8
−
3
View file @
6c2466b6
...
...
@@ -74,8 +74,11 @@ soma_low_c : 0.15
soma_high_c
:
0.7126
; this is a coefficient => not in micron
soma_selem_micron_c
:
0.481
soma_min_area_c
:
58
soma_max_area_c
:
580
; below, area correspond to a volume
soma_min_area_c
:
116
# 58 if ToPixel (0,1)
soma_max_area_c
:
1160
# 580 if ToPixel (0,1)
[Extensions]
adapt_hist_equalization
:
False
...
...
@@ -84,7 +87,9 @@ ext_low_c : 10
ext_high_c
:
0.6
; for morphological cleaning
ext_selem_micron_c
:
0.2405
ext_min_area_c
:
5.7840
;below, area correspond to a volume
ext_min_area_c
:
11.568
# 5.7840 if ToPixel (0,1)
[Connexions]
max_straight_sq_dist_c
:
217
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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