AFNI automask broken (urgent help would be great)

23 views
Skip to first unread message

Michael

unread,
Oct 19, 2013, 6:44:06 PM10/19/13
to nipy...@googlegroups.com
AFNI Automask does not generate output strings correctly and string pattern %s is literally used in the generated command:

Given:
automask = afni.Automask()
automask.inputs.in_file = '/path/to/my_file.nii.gz'
automask.inputs.dilate = 1
automask.inputs.outputtype = "NIFTI_GZ"

No longer generate (automask.cmdline):
3dAutomask -apply_prefix /path/to/my_file_masked.nii.gz -dilate 1 -prefix /path/to/my_file_mask.nii.gz /path/to/my_file.nii.gz

But this nonviable command instead:
3dAutomask -apply_prefix %s_masked -dilate 1 -prefix %s_mask /path/to/my_file.nii.gz

Satrajit Ghosh

unread,
Oct 19, 2013, 6:51:56 PM10/19/13
to nipy-user
hi michael,

do you mind trying this branch?


cheers,

satra


--
 
---
You received this message because you are subscribed to the Google Groups "NiPy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nipy-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Michael

unread,
Oct 19, 2013, 7:16:43 PM10/19/13
to nipy...@googlegroups.com
Hi Satra,

Thank you so much for such a quick reply, this is for 50+ subjects to process urgently and this issue stuck my whole pipeline. I actually very luckily just found something which worked, i submitted a PR right now but my fix may be a hack.

Michael

unread,
Oct 19, 2013, 7:26:17 PM10/19/13
to nipy...@googlegroups.com
Latest nipype master fixed it! Amazing help, thanks!

Michael

unread,
Oct 19, 2013, 7:51:36 PM10/19/13
to nipy...@googlegroups.com
I can confirm everything's working great, thanks again for the fantastic support

Chris Filo Gorgolewski

unread,
Oct 19, 2013, 8:11:36 PM10/19/13
to nipy...@googlegroups.com
Awesome. Could you check if it's still working on the PR: https://github.com/nipy/nipype/pull/693 ?

Michael

unread,
Oct 19, 2013, 8:45:00 PM10/19/13
to nipy...@googlegroups.com
Ok i'll do that!


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "NiPy Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nipy-user/8GWqerCkGrg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nipy-user+...@googlegroups.com.

Michael

unread,
Oct 21, 2013, 10:18:20 PM10/21/13
to nipy...@googlegroups.com
Yes works fine. Sorry got entangled in between git commands and virtual envs


On Saturday, October 19, 2013 8:45:00 PM UTC-4, Michael wrote:
Ok i'll do that!
To unsubscribe from this group and stop receiving emails from it, send an email to nipy-user+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "NiPy Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nipy-user/8GWqerCkGrg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nipy-user+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages