[Neuroimaging] nipype interface not working

Satrajit Ghosh satra at mit.edu
Tue Jun 2 08:09:33 EDT 2020


hi qasim,

the code is not running because the run function needs to be called
jacobian.run(). i would recommend going through the nipype tutorials here:
https://miykael.github.io/nipype_tutorial/

in the future, you can post questions like this to neurostars.org

cheers,

satra

On Tue, Jun 2, 2020 at 6:14 AM Syed Qasim Abbas <
SyedQasim.Abbas at latrobe.edu.au> wrote:

> Hi,
>
> I am trying to use ANTS module available in nipype interface. The example
> code is given below:
>
>
>
> *from* *nipype.interfaces.ants* *import* CreateJacobianDeterminantImage
>
> *>>> *jacobian = CreateJacobianDeterminantImage()
>
> *>>> *jacobian.inputs.imageDimension = 3
>
> *>>> *jacobian.inputs.deformationField = 'ants_Warp.nii.gz'
>
> *>>> *jacobian.inputs.outputImage = 'out_name.nii.gz'
>
> *>>> *jacobian.cmdline
>
>
>
> The problem is that the code is not generating the output image and runs
> without popping any error message.
>
>
>
> I am using spyder 4.1.3 to run this code.
>
>
>
> Thanks for your positive suggestions in response.
>
>
>
> Regards
>
> Qasim
> _______________________________________________
> Neuroimaging mailing list
> Neuroimaging at python.org
> https://mail.python.org/mailman/listinfo/neuroimaging
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20200602/28248469/attachment.html>


More information about the Neuroimaging mailing list