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])
def submit(sub): slu.pmap(par_execute, keys(sub), walltime='2:55:00', memory=30, nodes=1, tasks=6, name='fmri_align')
def submit(): slu.pmap(par_execute, keys(), walltime='2:55:00', memory=60, nodes=1, tasks=16, name='brainstem_coefs')
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')
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')
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')
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')