Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ commands:
cd ..
build-images:
steps:
- run:
name: "Logging into GitHub Container Registry"
command: echo "${GITHUB_REGISTRY_TOKEN}" | docker login https://docker.pkg.github.com -u ${GITHUB_REGISTRY_NAME} --password-stdin
- run:
name: "Building Docker image"
command: |
Expand Down
2 changes: 1 addition & 1 deletion CPAC/GUI/interface/windows/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def runAnalysis1(self, pipeline, sublist, p):
pass

CPAC.pipeline.cpac_runner.run(sublist, pipeline, p,
plugin='MultiProc',
plugin='LegacyMultiProc',
plugin_args=plugin_args)

def runIndividualAnalysis(self, event):
Expand Down
2 changes: 1 addition & 1 deletion CPAC/alff/alff.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def run_alff(input_fmri, func_brain_mask, hp=0.01, lp=0.1, out_dir=None,

if run:
workflow.run(
plugin='MultiProc', plugin_args={'n_procs': num_cores_per_subject})
plugin='LegacyMultiProc', plugin_args={'n_procs': num_cores_per_subject})
outpath = glob.glob(os.path.join(workflow_dir, output, '*'))
return outpath

Expand Down
17 changes: 11 additions & 6 deletions CPAC/anat_preproc/anat_preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,18 +377,23 @@ def skullstrip_anatomical(method='afni', config=None, wf_name='skullstrip_anatom

elif method == 'niworkflows-ants':
# Skull-stripping using niworkflows-ants
anat_skullstrip_ants = init_brain_extraction_wf(tpl_target_path=config.niworkflows_ants_template_path,
tpl_mask_path=config.niworkflows_ants_mask_path,
tpl_regmask_path=config.niworkflows_ants_regmask_path,
name='anat_skullstrip_ants')
anat_skullstrip_ants = init_brain_extraction_wf(
tpl_target_path=config.niworkflows_ants_template_path,
tpl_mask_path=config.niworkflows_ants_mask_path,
tpl_regmask_path=config.niworkflows_ants_regmask_path,
name='anat_skullstrip_ants',
omp_nthreads=config.num_ants_threads,
mem_gb=(
config.maximumMemoryPerParticipant / config.num_ants_threads
))

preproc.connect(inputnode, 'anat_data',
anat_skullstrip_ants, 'inputnode.in_files')

preproc.connect(anat_skullstrip_ants, 'copy_xform.out_file',
preproc.connect(anat_skullstrip_ants, 'outputnode.out_file',
outputnode, 'skullstrip')

preproc.connect(anat_skullstrip_ants, 'copy_xform.out_file',
preproc.connect(anat_skullstrip_ants, 'outputnode.out_file',
outputnode, 'brain')

preproc.connect(anat_skullstrip_ants, 'atropos_wf.copy_xform.out_mask',
Expand Down
Loading