-
Notifications
You must be signed in to change notification settings - Fork 536
[ENH] Add interface to SPM realign_unwarp #2635
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
Changes from 3 commits
d6b6786
6d0895f
4037d39
f1ed66b
9303025
b61c1d7
a4c4de5
3f6c5d2
1b12a27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -437,6 +437,251 @@ def _list_outputs(self): | |||||||
return outputs | ||||||||
|
||||||||
|
||||||||
class RealignUnwarpInputSpec(SPMCommandInputSpec): | ||||||||
in_files = InputMultiPath( | ||||||||
traits.Either(traits.List(File(exists=True)), | ||||||||
|
class ImageFileSPM(ImageFile): |
instead of File
, since it will not allow compressed niftis as well
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.
you'll have to add RealignUnwarp
to
nipype/nipype/interfaces/spm/__init__.py
Lines 8 to 10 in 7ea4f1b
from .preprocess import (FieldMap, SliceTiming, Realign, Coregister, Normalize, | |
Normalize12, Segment, Smooth, NewSegment, DARTEL, | |
DARTELNorm2MNI, CreateWarped, VBMSegment) |
in order to import this way
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.
IIRC, these files must exist to satisfy the traits requirements - we have quite a bit included in the repo already, but for the sake of interface clarity if you cannot reuse any existing files, feel free to add necessary (empty) files
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.
InputMultiPath
is in the process of replaced byInputMultiObject
, let's use that instead