We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8466f59 commit 0b91a37Copy full SHA for 0b91a37
nipype/interfaces/nipy/preprocess.py
@@ -204,6 +204,18 @@ class TrimOutputSpec(TraitedSpec):
204
out_file = File(exists=True)
205
206
class Trim(BaseInterface):
207
+ """ Simple interface to trim a few volumes from a 4d fmri nifti file
208
+
209
+ Examples
210
+ --------
211
+ >>> from nipype.interfaces.nipy.preprocess import Trim
212
+ >>> trim = Trim()
213
+ >>> trim.inputs.in_file = ['functional.nii']
214
+ >>> trim.inputs.begin_index = 3 # remove 3 first volumes
215
+ >>> res = trim.run() # doctest: +SKIP
216
217
+ """
218
219
input_spec = TrimInputSpec
220
output_spec = TrimOutputSpec
221
0 commit comments