- Notifications
You must be signed in to change notification settings - Fork 536
WIP: AFNI interfaces #238
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
WIP: AFNI interfaces #238
Conversation
nipype/interfaces/afni/preprocess.py Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover unresolved conflict?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what made it look this way -
However the interface for ThreedAllineate should look like this:-
class ThreedAllineateInputSpec(AFNITraitedSpec):
infile = File(desc = 'input file to 3dAllineate',
argstr = '-source %s',
position = -1,
mandatory = True,
exists = True)
outfile = File(desc = 'output file from 3dAllineate',
argstr = '-prefix %s',
position = -2,
mandatory = True)
matrix = File(desc = 'matrix to align input file',
argstr = '-1dmatrix_apply %s',
position = -3)
class ThreedAllineateOutputSpec(AFNITraitedSpec):
out_file = File(desc = 'cut file',
exists = True)
class ThreedAllineate(AFNICommand):
_cmd = '3dAllineate' input_spec = ThreedAllineateInputSpec output_spec = ThreedAllineateOutputSpec def _list_outputs(self): outputs = self.output_spec().get() outputs['out_file'] = self.inputs.outfile return outputs There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you commit those changes and push it to github, they will be automatically included in this pull request. How cool is that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is very cool. Made the requested edits , created a patch and submitted.
Thanks for the quick responses!
Cheers!
Sharad
On Mon, Sep 26, 2011 at 9:01 AM, Chris Filo Gorgolewski <
reply@reply.github.com>wrote:
For complete details, see the `3dAllineate Documentation. <http://afni.nimh.nih.gov/pub/dist/doc/program_help/3dAllineate.html>`_
"""
+>>>>>>> 2d53ac8If you commit those changes and push it to github, they will be
automatically included in this pull request. How cool is that?Reply to this email directly or view it on GitHub:
https://github.com/nipy/nipype/pull/238/files#r140110
| since i'm going to start requesting that people clean up code before we merge and hopefully do so in a distributed manner, here are some new guidelines. we are not there yet with consistency (i still need to do what i'm asking), but i hope to clean up stylistic and base-class test coverage + automated api test coverage soon. this is more of a note to all (including myself)!
cd to main nipype directory (not nipype/nipype, but just nipype)
i'll put these guidelines in the docs and send out an email by tonight. hopefully i'll have a simple: |
| thanks I am on it On Tue, Sep 27, 2011 at 9:39 AM, Satrajit Ghosh <
|
| Would your fixes make it for the next release? (Due in a week) |
| Yes sure! I am fighting a brutal deadline for sunday. I should be able to make sanity Best! On Wed, Nov 2, 2011 at 8:05 AM, Chris Filo Gorgolewski <
|
| I have a question about the way out_filename (-prefix or other outputs) is set for most interface, because it is not yet unified for all of these and we should make a choice before going further. |
| i think that's a great idea. in the fsl routines, we use genfile and a fixed suffix. if you want to make that optionally changeable for afni that would be good. |
| I will start updating it from this morning. Apologies on the delay. On Fri, Dec 23, 2011 at 3:52 AM, Satrajit Ghosh <
|
| Am I correct by assuming that gh-278 superseded this PR? |
| yes |
Hi All,
I have added a bunch of afni interfaces to the preprocess.py file in nipype/interfaces/afni/preprocess.py.
Please review !
Cheers!
Sharad