Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MPBA Radiomics
RADLER
Commits
9694000b
Commit
9694000b
authored
Mar 24, 2020
by
Alessia Marcolini
Browse files
Back to original features out filename
parent
bd7a2a85
Changes
1
Hide whitespace changes
Inline
Side-by-side
02_radiomics_features_extraction/extract_features_radiomics.py
View file @
9694000b
#%%
import
os
import
warnings
from
pathlib
import
Path
import
SimpleITK
as
sitk
import
numpy
as
np
import
pandas
as
pd
import
SimpleITK
as
sitk
from
tqdm
import
tqdm
from
pyradiomics_radler
import
MyRadiomicsFeaturesExtractor
as
RadiomicsFeatureExtractor
from
multiproc
import
ListMultiprocessing
import
warnings
from
pyradiomics_radler
import
MyRadiomicsFeaturesExtractor
as
RadiomicsFeatureExtractor
warnings
.
filterwarnings
(
"ignore"
)
# %%
# os.chdir('..')
DATASET
=
Path
(
'HN_
BZ
'
)
DATASET
=
Path
(
'HN_
val
'
)
BBOX
=
'bbox_64_rad'
VOXEL_SPACING
=
(
1.0
,
1.0
,
1.0
)
SCAN_NAMES
=
[
'CT'
,
'PT'
]
...
...
@@ -28,7 +28,7 @@ PIXEL_SPACING = [1.0, 2.0, 3.0, 4.0, 5.0]
#%%
DATADIR
=
Path
(
'data'
)
/
DATASET
/
'processed'
/
'bbox'
/
BBOX
OUTDIR
=
Path
(
'data'
)
/
DATASET
/
'processed'
OUTFILE
=
f
'radiomics_features_
{
BBOX
}
_1
.csv'
# output file name
OUTFILE
=
f
'radiomics_features_
{
BBOX
}
.csv'
# output file name
clinical
=
pd
.
read_csv
(
Path
(
'data'
)
/
DATASET
/
'processed'
/
f
'clinical_
{
DATASET
}
.csv'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment