Skip to content

Commit

Permalink
Increased memory for merge node.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gab-D-G committed Jan 21, 2020
1 parent e371af9 commit 6d4ed28
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rabies/preprocess_bold_pkg/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def init_bold_preproc_trans_wf(resampling_dim, name='bold_preproc_trans_wf'):
name='outputnode')


bold_transform = pe.Node(slice_applyTransforms(), name='bold_transform', mem_gb=3)
bold_transform = pe.Node(slice_applyTransforms(), name='bold_transform')
bold_transform.inputs.apply_motcorr = True
bold_transform.inputs.resampling_dim = resampling_dim
bold_transform.inputs.data_type = os.environ["rabies_data_type"]

merge = pe.Node(Merge(), name='merge', mem_gb=3)
merge = pe.Node(Merge(), name='merge', mem_gb=5)
merge.inputs.data_type = os.environ["rabies_data_type"]
merge.plugin_args = {'qsub_args': '-pe smp %s' % (str(3*int(os.environ["min_proc"]))), 'overwrite': True}
merge.plugin_args = {'qsub_args': '-pe smp %s' % (str(4*int(os.environ["min_proc"]))), 'overwrite': True}

# Generate a new BOLD reference
bold_reference_wf = init_bold_reference_wf()
Expand Down Expand Up @@ -66,15 +66,15 @@ def init_bold_commonspace_trans_wf(resampling_dim, name='bold_commonspace_trans_
niu.IdentityInterface(fields=['bold', 'bold_ref', 'brain_mask', 'WM_mask', 'CSF_mask', 'labels']),
name='outputnode')

bold_transform = pe.Node(slice_applyTransforms(), name='bold_transform', mem_gb=3)
bold_transform = pe.Node(slice_applyTransforms(), name='bold_transform')
bold_transform.inputs.apply_motcorr = True
bold_transform.inputs.ref_file = os.environ["template_anat"]
bold_transform.inputs.resampling_dim = resampling_dim
bold_transform.inputs.data_type = os.environ["rabies_data_type"]

merge = pe.Node(Merge(), name='merge', mem_gb=3)
merge = pe.Node(Merge(), name='merge', mem_gb=5)
merge.inputs.data_type = os.environ["rabies_data_type"]
merge.plugin_args = {'qsub_args': '-pe smp %s' % (str(3*int(os.environ["min_proc"]))), 'overwrite': True}
merge.plugin_args = {'qsub_args': '-pe smp %s' % (str(4*int(os.environ["min_proc"]))), 'overwrite': True}

# Generate a new BOLD reference
bold_reference_wf = init_bold_reference_wf()
Expand Down

0 comments on commit 6d4ed28

Please sign in to comment.