|
a |
|
b/config.py |
|
|
1 |
# LOCATION VARIABLES |
|
|
2 |
|
|
|
3 |
#TODO: Ensure that these can be run from other machines easily. |
|
|
4 |
location = 'data/stanford/' |
|
|
5 |
|
|
|
6 |
clinical = location + 'labels/full_clinical_file.csv' |
|
|
7 |
recurrence = location + 'labels/recurrence_cleaned.csv' |
|
|
8 |
images = location + 'images_original/' |
|
|
9 |
segs = location + 'segmentations_cleaned/' |
|
|
10 |
cropped = location + 'cropped_nodules/' |
|
|
11 |
pyradiomics = location + 'pyradiomics_features/' |
|
|
12 |
genomics = location + 'genomics_cleaned.csv' |
|
|
13 |
densenet = cropped |
|
|
14 |
csv_location = location + 'labels/recurrence_labels/' |
|
|
15 |
|
|
|
16 |
# OTHER VARIABLES |
|
|
17 |
|
|
|
18 |
mutation_mapping = {'Mutant': 1, |
|
|
19 |
'Wildtype': 0, |
|
|
20 |
'Not collected': 'N/A', |
|
|
21 |
'Unknown': 'N/A'} |
|
|
22 |
|
|
|
23 |
recurrence_mapping = {'yes': 1, 'no': 0, 'Not collected': 'N/A'} |
|
|
24 |
survival_mapping = {'Dead': 1, 'Alive': 0} |
|
|
25 |
|
|
|
26 |
class_weights = {'Recurrence': {'no':0.3, 'yes':0.7}, |
|
|
27 |
'Survival Status': {'Dead':0.8, 'Alive':0.2}} |
|
|
28 |
location_dict = {'Checked': 1, 'Unchecked':0} |
|
|
29 |
smoking_dict = {'Nonsmoker': 0, |
|
|
30 |
'Former' : 1, |
|
|
31 |
'Current' : 2} |
|
|
32 |
gg_dict = {'0%': 0, |
|
|
33 |
'>0 - 25%': 1, |
|
|
34 |
'25 - 50%': 2, |
|
|
35 |
'50 - 75%' : 3, |
|
|
36 |
'75 - < 100%' : 4, |
|
|
37 |
'100%' : 5, |
|
|
38 |
'Not Assessed': 0} |