Esempio n. 1
0
# creating a session and getting sessionID
engine.createSession();
print("sessionID received = %s" % (engine.sessionID));

# 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_PM.nii.gz');   

# changing the MNI template
engine.setVariable('MNITemplate', 'studydirMNI152_T1_1mm_brain.nii.gz');

if (PIPELINE > 1):
   # changing the mask type
   engine.setVariable('ActivationLevelMaskType', '1');   
   # changing the mask
   engine.setVariable('ActivationLevelMask', 'glmdirtstats_features_RUN01_bin');   
   # changing the directory of the volumes
   engine.setVariable('Prefix', 'outputdirRUN0' + option + os.path.sep + 'DRIN-');   
   # changing the current suffix
   engine.setVariable('CurrentRunSuffix', 'RUN0' + option);   
   
# initiating processing
engine.startTheEngine(1, PIPELINE!=1);
# 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);
Esempio n. 3
0
# 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)
Esempio n. 4
0
# 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);
Esempio n. 5
0
print("sessionID received = %s" % (engine.sessionID))

# 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_PM.nii.gz')

# changing the MNI template
engine.setVariable('MNITemplate', 'studydirMNI152_T1_1mm_brain.nii.gz')

if (PIPELINE > 1):
    # changing the mask type
    engine.setVariable('ActivationLevelMaskType', '1')
    # changing the mask
    engine.setVariable('ActivationLevelMask',
                       'glmdirtstats_features_RUN01_bin')
    # changing the directory of the volumes
    engine.setVariable('Prefix',
                       'outputdirRUN0' + option + os.path.sep + 'DRIN-')
    # changing the current suffix
    engine.setVariable('CurrentRunSuffix', 'RUN0' + option)

# initiating processing
engine.startTheEngine(1, PIPELINE != 1)