-
Notifications
You must be signed in to change notification settings - Fork 7
/
run_preprocessing_pipeline.py
43 lines (27 loc) · 1.13 KB
/
run_preprocessing_pipeline.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
# # LeiCA modules
from preprocessing_pipeline import preprocessing_pipeline
from variables import dicom_dir, working_dir, freesurfer_dir, template_dir, script_dir, ds_dir
from variables import TR_list, subjects_list
from variables import vols_to_drop, lp_cutoff_freq, hp_cutoff_freq, use_fs_brainmask
from variables import use_n_procs, plugin_name
for subject_id in subjects_list:
subject_working_dir = os.path.join(working_dir, 'preprocessing', subject_id)
subject_ds_dir = os.path.join(ds_dir, subject_id)
# INPUT PARAMETERS for pipeline
cfg ={}
cfg['subject_id'] = subject_id
cfg['dicom_dir'] = dicom_dir
cfg['working_dir'] = subject_working_dir
cfg['freesurfer_dir'] = freesurfer_dir
cfg['template_dir'] = template_dir
cfg['script_dir'] = script_dir
cfg['ds_dir'] = subject_ds_dir
cfg['TR_list'] = TR_list
cfg['vols_to_drop'] = vols_to_drop
cfg['lp_cutoff_freq'] = lp_cutoff_freq
cfg['hp_cutoff_freq'] = hp_cutoff_freq
cfg['use_fs_brainmask'] = use_fs_brainmask
cfg['use_n_procs'] = use_n_procs
cfg['plugin_name'] = plugin_name
preprocessing_pipeline(cfg)