# reading the actual run number if (len(sys.argv)>1): option = str(sys.argv[1]); else: option = "1"; PIPELINE = int(option); # changing the MNI mask engine.setVariable('MNIMask', 'studydirhmat_spm_final.nii'); # changing the MNI template engine.setVariable('MNITemplate', 'studydirMNI152_T1_1mm_brain.nii.gz'); # changing the directory of the volumes engine.setVariable('Prefix', 'outputdirRUN0' + option + os.path.sep + 'DRIN-'); # changing the activation level engine.setVariable('ActivationLevel', '0.01'); # changing the current suffix engine.setVariable('CurrentRunSuffix', 'RUN0' + option); # initiating processing engine.doTrain = False; engine.doGLM = False; engine.doFeatureSelection = False; engine.additionalFeedbacks = 1; engine.startTheEngine(3, True);
# changing the MNI template engine.setVariable('MNITemplate', 'studydirMNI152_T1_1mm_brain.nii.gz'); # changing the directory of the volumes engine.setVariable('Prefix', 'outputdirRUN0' + option + os.path.sep + 'DRIN-'); # changing the correlation size engine.setVariable('CorrelationWindowSize', '10'); # changing the current suffix engine.setVariable('CurrentRunSuffix', 'RUN0' + option); # changing the correlation size engine.setVariable('CorrelationWindowSize', '10'); # changing the Roi Mask engine.setVariable('ROIMask', 'outputdirROIsMap_RUN01.nii'); # changing the Roi Intensities engine.setVariable('ROIIntensities', '1,7'); # changing the Roi percentage engine.setVariable('ROIPercentage', '100'); # initiating processing engine.doTrain = True; engine.doGLM = True; engine.doFeatureSelection = True; engine.startTheEngine(4, PIPELINE!=1);
# reading the actual run number if (len(sys.argv) > 1): option = str(sys.argv[1]) else: option = "1" PIPELINE = int(option) # changing the MNI mask engine.setVariable('MNIMask', 'studydirhmat_spm_final.nii') # changing the MNI template engine.setVariable('MNITemplate', 'studydirMNI152_T1_1mm_brain.nii.gz') # changing the directory of the volumes engine.setVariable('Prefix', 'outputdirRUN0' + option + os.path.sep + 'DRIN-') # changing the activation level engine.setVariable('ActivationLevel', '0.01') # changing the current suffix engine.setVariable('CurrentRunSuffix', 'RUN0' + option) # initiating processing engine.doTrain = False engine.doGLM = False engine.doFeatureSelection = False engine.additionalFeedbacks = 1 engine.startTheEngine(3, True)