Skip to content

Commit e54bdf7

Browse files
Merge pull request #1 from chrisfilo/enh/retroicor
Enh/retroicor
2 parents 19bf36a + 869d661 commit e54bdf7

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,30 +1765,34 @@ def _gen_filename(self, name):
17651765

17661766
class RetroicorInputSpec(AFNICommandInputSpec):
17671767
in_file = File(desc='input file to 3dretroicor',
1768-
argstr='%s',
1768+
argstr='%s',
17691769
position=-1,
17701770
mandatory=True,
17711771
exists=True)
17721772
out_file = File(desc='output image file name', argstr='-prefix %s', mandatory=True, position=1)
17731773
card = File(desc='1D cardiac data file for cardiac correction',
1774-
argstr='-card %s',
1775-
position=-2)
1774+
argstr='-card %s',
1775+
position=-2,
1776+
exists=True)
17761777
resp = File(desc='1D respiratory waveform data for correction',
1777-
argstr='-resp %s',
1778-
position=-3)
1778+
argstr='-resp %s',
1779+
position=-3,
1780+
exists=True)
17791781
threshold = traits.Int(desc='Threshold for detection of R-wave peaks in input (Make sure it is above the background noise level, Try 3/4 or 4/5 times range plus minimum)',
1780-
argstr='-threshold %d',
1781-
position=-4)
1782+
argstr='-threshold %d',
1783+
position=-4)
17821784
order = traits.Int(desc='The order of the correction (2 is typical)',
1783-
argstr='-order %s',
1784-
position=-5)
1785+
argstr='-order %s',
1786+
position=-5)
17851787

17861788
cardphase = File(desc='Filename for 1D cardiac phase output',
1787-
argstr='-cardphase %s',
1788-
position=-6)
1789+
argstr='-cardphase %s',
1790+
position=-6,
1791+
hash_files=False)
17891792
respphase = File(desc='Filename for 1D resp phase output',
1790-
argstr='-respphase %s',
1791-
position=-7)
1793+
argstr='-respphase %s',
1794+
position=-7,
1795+
hash_files=False)
17921796

17931797

17941798
class Retroicor(AFNICommand):

nipype/testing/data/mask.1D

Whitespace-only changes.

nipype/testing/data/resp.1D

Whitespace-only changes.

0 commit comments

Comments
 (0)