コード例 #1
0
ファイル: SubjectLevel.py プロジェクト: nwilming/decim
def submit(sub, env='Hummel'):
    name_list = [
        "The", "owls", "are", "not", "what", "they", "seem", "COOPER",
        "COOPER", "COOPER", "COOPER", "COOPER", "COOPER", "COOPER", "COOPER",
        "COOPER", "COOPER", "COOPER", "COOPER", "COOPER", "COOPER", "COOPER",
        "COOPER", "COOPER", "COOPER", "COOPER", "COOPER", "COOPER", "COOPER",
        "COOPER", "COOPER", "COOPER", "COOPER", "COOPER", "COOPER", "COOPER",
        "COOPER", "COOPER", "COOPER", "COOPER", "COOPER"
    ]
    if env == 'Hummel':

        def keys(sub):
            keys = []
            for ses in [2, 3]:
                keys.append((sub, ses, env))
            return keys

        slu.pmap(par_execute,
                 keys(sub),
                 walltime='2:00:00',
                 memory=40,
                 nodes=1,
                 tasks=2,
                 name='SubjectLevel')
    elif env == 'Climag':
        for ses in [2, 3]:
            pbs.pmap(execute, [(sub, ses, env)],
                     walltime='4:00:00',
                     memory=40,
                     nodes=1,
                     tasks=2,
                     name=name_list[sub])
コード例 #2
0
def submit(sub):
    slu.pmap(par_execute,
             keys(sub),
             walltime='2:55:00',
             memory=30,
             nodes=1,
             tasks=6,
             name='fmri_align')
コード例 #3
0
def submit():
    slu.pmap(par_execute,
             keys(),
             walltime='2:55:00',
             memory=60,
             nodes=1,
             tasks=16,
             name='brainstem_coefs')
コード例 #4
0
ファイル: linreg_voxel.py プロジェクト: nwilming/decim
def submit():
    for sub in range(1, 23):
        slu.pmap(par_execute,
                 keys(sub),
                 walltime='2:55:00',
                 memory=60,
                 nodes=1,
                 tasks=2,
                 name='fmri_align')
コード例 #5
0
def submit():
    from decim import slurm_submit as slu
    for chunk in grouper(keys(), 6):
        slu.pmap(par_execute,
                 chunk,
                 walltime='2:00:00',
                 memory=60,
                 nodes=1,
                 tasks=16,
                 name='bids_stan')
コード例 #6
0
def submit():
    from decim import slurm_submit as slu
    for ii, chunk in enumerate(grouper(fix_keys(), 1000)):
        slu.pmap(par_execute,
                 ii,
                 chunk,
                 walltime='11:55:00',
                 memory=60,
                 nodes=1,
                 tasks=16,
                 name='PRECOVERY')
コード例 #7
0
def hummel_submit():
    flex_dir = '/work/faty014/FLEXRULE'

    def keys():
        keys = []
        for sub in range(1, 23):
            for task in ['inference', 'instructed']:
                keys.append((sub, flex_dir, task))
        return keys

    def par_execute(keys):
        with Pool(16) as p:
            p.starmap(extract_brainstem, keys)

    slu.pmap(par_execute,
             keys(),
             walltime='2:55:00',
             memory=60,
             nodes=1,
             tasks=16,
             name='brainstem_coefs')