Example #1
0
def run_subject(subject):
    if subject.is_valid():
        cmpgui.subject_name = subject.ID
        cmpgui.subject_workingdir = subject.directory
        cmp.connectome.mapit(cmpgui)
    else:
        print "ERROR: Subject " + subject.ID + " is invalid!"
Example #2
0
def run_subjects(subjects):
    """For each subject, run connectome mapper with our params"""
    for subject in subjects:
        if subject.is_valid():
            cmpgui.subject_name = subject.ID
            cmpgui.subject_workingdir = subject.directory
            cmp.connectome.mapit(cmpgui)
        else:
            print "ERROR: Subject " + subject.ID + " is invalid!"