Commit 9694000b authored by Alessia Marcolini's avatar Alessia Marcolini
Browse files

Back to original features out filename

parent bd7a2a85
#%% #%%
import os import os
import warnings
from pathlib import Path from pathlib import Path
import SimpleITK as sitk
import numpy as np import numpy as np
import pandas as pd import pandas as pd
import SimpleITK as sitk
from tqdm import tqdm from tqdm import tqdm
from pyradiomics_radler import MyRadiomicsFeaturesExtractor as RadiomicsFeatureExtractor
from multiproc import ListMultiprocessing from multiproc import ListMultiprocessing
import warnings from pyradiomics_radler import MyRadiomicsFeaturesExtractor as RadiomicsFeatureExtractor
warnings.filterwarnings("ignore") warnings.filterwarnings("ignore")
# %% # %%
# os.chdir('..') # os.chdir('..')
DATASET = Path('HN_BZ') DATASET = Path('HN_val')
BBOX = 'bbox_64_rad' BBOX = 'bbox_64_rad'
VOXEL_SPACING = (1.0, 1.0, 1.0) VOXEL_SPACING = (1.0, 1.0, 1.0)
SCAN_NAMES = ['CT', 'PT'] SCAN_NAMES = ['CT', 'PT']
...@@ -28,7 +28,7 @@ PIXEL_SPACING = [1.0, 2.0, 3.0, 4.0, 5.0] ...@@ -28,7 +28,7 @@ PIXEL_SPACING = [1.0, 2.0, 3.0, 4.0, 5.0]
#%% #%%
DATADIR = Path('data') / DATASET / 'processed' / 'bbox' / BBOX DATADIR = Path('data') / DATASET / 'processed' / 'bbox' / BBOX
OUTDIR = Path('data') / DATASET / 'processed' 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') clinical = pd.read_csv(Path('data') / DATASET / 'processed' / f'clinical_{DATASET}.csv')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment