https://github.com/samsydco/HBN
Tip revision: 278127d07b721c73679c11d0d1836631df778323 authored by samsydco on 16 May 2022, 17:49:03 UTC
Update README
Update README
Tip revision: 278127d
settings.py
#!/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')