Skip to content

EpiReg with 'wmseg' input throws TraitError: Output 'seg' does not exist #3264

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

Closed
oliver-contier opened this issue Oct 29, 2020 · 0 comments · Fixed by #3265
Closed

EpiReg with 'wmseg' input throws TraitError: Output 'seg' does not exist #3264

oliver-contier opened this issue Oct 29, 2020 · 0 comments · Fixed by #3265

Comments

@oliver-contier
Copy link
Contributor

Summary

Actual behavior

Passing a white matter segmentation with the 'wmseg' input to a Node using the EpiReg interface raises the following Error:

TraitError: The 'seg' trait of an EpiRegOutputSpec instance must be a pathlike object or string representing an existing file but a value of "/Users/olivercontier/bigfri/scratch/preproc_bbr_workdir/sub-01/sub_wf/ses_wf/_ses_i_0/bbr/epi2struct_fast_seg.nii.gz" <class 'str'> was specified.

Expected behavior

FSL's epi_reg script does not perform segmentation when a white matter segmented file is already provided. Hence, the interface should not check whether the 'seg' output exists in that case.

I think this should be fixable by changing the behavior of _list_outputs() method of the EpiReg class.

How to replicate the behavior

I tried to provide more details in my post on neurostars.

Platform details:

{'commit_hash': '07af08f98',
 'commit_source': 'repository',
 'networkx_version': '2.4',
 'nibabel_version': '3.1.1',
 'nipype_version': '1.6.0-dev+g07af08f98',
 'numpy_version': '1.18.5',
 'pkg_path': '/Users/olivercontier/bigfri/scratch/bids/code/sandbox/nipype_epireg/nipype/nipype',
 'scipy_version': '1.5.2',
 'sys_executable': '/opt/anaconda3/envs/bigfri/bin/python',
 'sys_platform': 'darwin',
 'sys_version': '3.8.5 | packaged by conda-forge | (default, Aug 20 2020, '
                '20:51:28) \n'
                '[Clang 10.0.1 ]',
 'traits_version': '6.1.0'}

Execution environment

My python environment outside container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant