-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.py
executable file
·48 lines (42 loc) · 1.59 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python3
path = '/data/HBN/test2/'
codedr = path+'fmriprep_code/'#HBN_fmriprep_code/'
TRratingdr = codedr +'T1_rating/'
outputdr_old = path + 'fmriprep_output/'
outputdr = path + 'fmriprep_output_2/'
outputdrHPC = path + 'fmriprep_output/fmriprep/'
tmpdr = path+'scratch/'
Missingcsv = codedr + 'Missing'
T1file = codedr + 'T1.csv'
fmripreppath = outputdr + 'fmriprep/'
fmripreppath_old = path + 'derivatives/'
prepath = path + 'Preprocessed/'
hpcprepath = path + 'Preprocessed_HPC_2/'
ISCpath = path + 'ISCh5/'
HMMpath = path + 'HMM/'
phenopath = path + 'pheno_data/'
assesspath = path + 'assessment_data/rel_6/'
metaphenopath = path + 'pheno_meta_data/'
videopath = codedr+'HBN_fmriprep_code/videos/'
figurepath = path+'Figures/'
# bad subjects for very unique reasons:
bad_sub_dict = {'sub-NDARHR140GMB':'TP BOLD scan is cut off, no motion params','sub-NDARYD546HCB':'TP BOLD scan is cut off, no motion params','sub-NDARJF517HC8':'*VNav_T1w.nii.gz damaged'}
def yesnofun(sub):
while True:
try:
yesno = input("%s: Type \"y\" for \"yes\", \"n\" for \"no\", and \
\"m\" for \"maybe\".\n(If you need a break, type \"break\".)\n"%(sub))
except ValueError:
print("Sorry, I didn't understand that.")
continue
if yesno not in ['y','n','m','break']:
print("Sorry, your response must be \"y\", \"n\", or \"m\".")
continue
elif yesno=="break":
break
else:
#Answer is good.
break
return yesno
import glob
subord = glob.glob(prepath+'sub*.h5')