Skip to content

fix: to have recon-all work with 5.3 on OSX #1454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 26, 2016
Merged

Conversation

satra
Copy link
Member

@satra satra commented Apr 24, 2016

@dgellis90 and @hjmjohnson - could you please take a look at these changes? this did allow running from start to finish.

from nipype import config
config.enable_provenance()
import os
from nipype.workflows.smri.freesurfer import create_reconall_workflow
recon_all = create_reconall_workflow()
recon_all.inputs.inputspec.subject_id = 'time'
recon_all.inputs.inputspec.subjects_dir = os.getcwd()
recon_all.inputs.inputspec.T1_files = os.path.abspath('mprage003.nii.gz')
recon_all.base_dir = os.getcwd()
recon_all.run(plugin='MultiProc', plugin_args={'n_procs': 4})

also subject_id did not seem to get carried along into the sub commands. so i saw commands like this where the --subject is called with subejct_id instead of 'time' as i used in calling the workflow.

Running: mri_segstats --brainmask brainmask.mgz --ctab /Applications/freesurfer/WMParcStatsLUT.txt
 --etiv --excludeid 0 --in /software/temp/share_blake/ReconAll/AutoRecon2/CA_Normalize/norm.mgz
 --in-intensity-name norm --in-intensity-units MR --pv /software/temp/share_blake/ReconAll/AutoRecon2/CA_Normalize/norm.mgz --seg 
/software/temp/share_blake/ReconAll/AutoRecon3/WM_Parcellation/wmparc.mgz --subject subject_id
 --surf-wm-vol --sum ./wmparc.stats```

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.528% when pulling bf46eef on satra:fix/reconwf into a8e3730 on nipy:master.

@ellisdg
Copy link
Contributor

ellisdg commented Apr 25, 2016

I think the changes look good. I made a PR to your branch that adds an explanation how the subject_id is handled in the workflow.

DOC: Explains how subject_id is used in the workflow
@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.528% when pulling 6e40eac on satra:fix/reconwf into a8e3730 on nipy:master.

@satra satra merged commit d6be1d5 into nipy:master Apr 26, 2016
@satra satra deleted the fix/reconwf branch October 30, 2017 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants