Skip to content

Commit 1d87685

Browse files
authored
Merge pull request #50 from CoBrALab/updates
Added memory specification for running in multiproc.
2 parents 0581aa6 + 88738fb commit 1d87685

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rabies/preprocess_bold_pkg/hmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def init_bold_hmc_wf(name='bold_hmc_wf'):
3838
name='outputnode')
3939

4040
# Head motion correction (hmc)
41-
motion_estimation = pe.Node(EstimateMotion(), name='ants_MC')
41+
motion_estimation = pe.Node(EstimateMotion(), name='ants_MC', mem_gb=3)
4242
motion_estimation.plugin_args = {'qsub_args': '-pe smp 4', 'overwrite': True}
4343

4444

rabies/preprocess_bold_pkg/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def init_bold_reg_wf(coreg_script='SyN', name='bold_reg_wf'):
5757
run_reg = pe.Node(Function(input_names=["reg_script", "moving_image", "fixed_image",
5858
"anat_mask"],
5959
output_names=['affine_bold2anat', 'warp_bold2anat', 'inverse_warp_bold2anat', 'output_warped_bold'],
60-
function=run_antsRegistration), name='EPI_Coregistration')
60+
function=run_antsRegistration), name='EPI_Coregistration', mem_gb=3)
6161
run_reg.inputs.reg_script=coreg_script
6262
run_reg.plugin_args = {'qsub_args': '-pe smp 4', 'overwrite': True}
6363

rabies/preprocess_bold_pkg/resampling.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ def init_bold_preproc_trans_wf(resampling_dim, name='bold_preproc_trans_wf'):
2121
name='outputnode')
2222

2323

24-
bold_transform = pe.Node(slice_applyTransforms(), name='bold_transform')
24+
bold_transform = pe.Node(slice_applyTransforms(), name='bold_transform', mem_gb=3)
2525
bold_transform.inputs.apply_motcorr = True
2626
bold_transform.inputs.resampling_dim = resampling_dim
2727
bold_transform.inputs.data_type = os.environ["rabies_data_type"]
2828

29-
merge = pe.Node(Merge(), name='merge')
29+
merge = pe.Node(Merge(), name='merge', mem_gb=3)
3030
merge.inputs.data_type = os.environ["rabies_data_type"]
3131
#merge.plugin_args = {'qsub_args': '-pe smp 2 -l h_vmem=1G ', 'overwrite': True}
3232

@@ -66,13 +66,13 @@ def init_bold_commonspace_trans_wf(resampling_dim, name='bold_commonspace_trans_
6666
niu.IdentityInterface(fields=['bold', 'bold_ref', 'brain_mask', 'WM_mask', 'CSF_mask', 'labels']),
6767
name='outputnode')
6868

69-
bold_transform = pe.Node(slice_applyTransforms(), name='bold_transform')
69+
bold_transform = pe.Node(slice_applyTransforms(), name='bold_transform', mem_gb=3)
7070
bold_transform.inputs.apply_motcorr = True
7171
bold_transform.inputs.ref_file = os.environ["template_anat"]
7272
bold_transform.inputs.resampling_dim = resampling_dim
7373
bold_transform.inputs.data_type = os.environ["rabies_data_type"]
7474

75-
merge = pe.Node(Merge(), name='merge')
75+
merge = pe.Node(Merge(), name='merge', mem_gb=3)
7676
merge.inputs.data_type = os.environ["rabies_data_type"]
7777

7878
# Generate a new BOLD reference

0 commit comments

Comments
 (0)