Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MPBA Radiomics
RADLER
Commits
8de02106
Commit
8de02106
authored
Mar 06, 2020
by
Alessia Marcolini
Browse files
Add filename column in HN_BZ dataset
parent
34b94221
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessing/prepare_clinical.py
View file @
8de02106
...
...
@@ -15,7 +15,7 @@ from utils import remove_na, remove_constant_cols
# os.chdir('..')
# %%
DATASET_NAME
=
'HN_
val
'
DATASET_NAME
=
'HN_
BZ
'
PROJECT_DATA_PATH
=
Path
(
'data'
)
/
DATASET_NAME
RAW_DATA_PATH
=
PROJECT_DATA_PATH
/
'raw'
PROCESSED_DATA_PATH
=
PROJECT_DATA_PATH
/
'processed'
...
...
@@ -384,6 +384,7 @@ elif DATASET_NAME == 'HN_BZ':
clinical
[
'ROI_name'
]
=
'lesione'
clinical
[
'ROI_modality'
]
=
'PT'
clinical
[
'filename'
]
=
clinical
[
'patient'
].
apply
(
lambda
x
:
x
+
'.npy'
)
clinical_no_na
.
to_csv
(
PROCESSED_DATA_PATH
/
CLINICAL_DATA_FILENAME_CLEAN
,
index
=
False
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment