Skip to content

Enh/tkregister2 #912

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 7 commits into from
Sep 3, 2014
Merged

Enh/tkregister2 #912

merged 7 commits into from
Sep 3, 2014

Conversation

juhuntenburg
Copy link
Contributor

Adding interface for Freesurfer tkregister2 command, so far only with basic functionality to convert fsl-style registration matrix to freesurfer-style matrix


>>> from nipype.interfaces.freesurfer import Tkregister2
>>> tk2 = Tkregister2(reg_file='register.dat')
>>> tk2.inputs.moving_image = 'func.nii.gz'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These doctests are failing:

TraitError: The 'moving_image' trait of a Tkregister2InputSpec instance must be an existing file name, but a value of 'func.nii.gz' <type 'str'> was specified.

This is happening because there isn't a file called func.nii.gz in the test data directory (nipype/testing/data/). You can either set an existing filename (probably best) or create the name issuing touch func.nii.gz in that folder and adding the new file to the repository.

Same stuff for func2anat.mat

Other than that, this contribution is nice. Thanks a lot.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0%) when pulling baed706 on juhuntenburg:enh/tkregister2 into 7f35086 on nipy:master.

@juhuntenburg
Copy link
Contributor Author

@oesteban thanks, i included the suggested modifications

@juhuntenburg
Copy link
Contributor Author

sorry, now the doctest passes but the autotest fails, guess i will have to go back to including the subjects_dir argument explicitly?

@satra
Copy link
Member

satra commented Sep 3, 2014

@juhuntenburg - you just need to update with make specs and push.

@juhuntenburg
Copy link
Contributor Author

@satra great, thanks!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0%) when pulling dacd42d on juhuntenburg:enh/tkregister2 into 7f35086 on nipy:master.

oesteban added a commit that referenced this pull request Sep 3, 2014
@oesteban oesteban merged commit eb3ca37 into nipy:master Sep 3, 2014
@juhuntenburg juhuntenburg deleted the enh/tkregister2 branch September 5, 2014 11:24
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.

4 participants