Skip to content

Commit dbac36d

Browse files
committed
Add duecredit citations for FSL, AFNI, 3dFWHMx.
Also fix small type in interfaces/base.py.
1 parent 75c65f1 commit dbac36d

File tree

4 files changed

+83
-2
lines changed

4 files changed

+83
-2
lines changed

nipype/interfaces/afni/base.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
"""Provide interface to AFNI commands."""
55
from __future__ import print_function, division, unicode_literals, absolute_import
6-
from builtins import object, str, bytes
6+
from builtins import object, str
77
from future.utils import raise_from
88

99
import os
@@ -13,6 +13,7 @@
1313
from ...utils.filemanip import split_filename
1414
from ..base import (
1515
CommandLine, traits, CommandLineInputSpec, isdefined, File, TraitedSpec)
16+
from ...external.due import BibTeX
1617

1718
# Use nipype's logging system
1819
IFLOGGER = logging.getLogger('interface')
@@ -148,6 +149,32 @@ class AFNICommand(AFNICommandBase):
148149
input_spec = AFNICommandInputSpec
149150
_outputtype = None
150151

152+
references_ = [{'entry': BibTeX('@article{Cox1996,'
153+
'author={R.W. Cox},'
154+
'title={AFNI: software for analysis and '
155+
'visualization of functional magnetic '
156+
'resonance neuroimages},'
157+
'journal={Computers and Biomedical research},'
158+
'volume={29},'
159+
'number={3},'
160+
'pages={162-173},'
161+
'year={1996},'
162+
'}'),
163+
'tags': ['implementation'],
164+
},
165+
{'entry': BibTeX('@article{CoxHyde1997,'
166+
'author={R.W. Cox and J.S. Hyde},'
167+
'title={Software tools for analysis and '
168+
'visualization of fMRI data},'
169+
'journal={NMR in Biomedicine},'
170+
'volume={10},'
171+
'number={45},'
172+
'pages={171-178},'
173+
'year={1997},'
174+
'}'),
175+
'tags': ['implementation'],
176+
}]
177+
151178
def __init__(self, **inputs):
152179
super(AFNICommand, self).__init__(**inputs)
153180
self.inputs.on_trait_change(self._output_update, 'outputtype')

nipype/interfaces/afni/utils.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from ..base import (
2525
CommandLineInputSpec, CommandLine, Directory, TraitedSpec,
2626
traits, isdefined, File, InputMultiPath, Undefined, Str)
27+
from ...external.due import BibTeX
2728

2829
from .base import (
2930
AFNICommandBase, AFNICommand, AFNICommandInputSpec, AFNICommandOutputSpec)
@@ -694,6 +695,16 @@ class FWHMx(AFNICommandBase):
694695
_cmd = '3dFWHMx'
695696
input_spec = FWHMxInputSpec
696697
output_spec = FWHMxOutputSpec
698+
699+
references_ = [{'entry': BibTeX('@article{CoxReynoldsTaylor2016,'
700+
'author={R.W. Cox, R.C. Reynolds, and P.A. Taylor},'
701+
'title={AFNI and clustering: false positive rates redux},'
702+
'journal={bioRxiv},'
703+
'year={2016},'
704+
'}'),
705+
'tags': ['method'],
706+
},
707+
]
697708
_acf = True
698709

699710
def _parse_inputs(self, skip=None):

nipype/interfaces/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ def _get_ram_mb(pid, pyfunc=False):
13871387
def get_max_resources_used(pid, mem_mb, num_threads, pyfunc=False):
13881388
"""Function to get the RAM and threads usage of a process
13891389
1390-
Paramters
1390+
Parameters
13911391
---------
13921392
pid : integer
13931393
the process ID of process to profile

nipype/interfaces/fsl/base.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from ... import logging
3535
from ...utils.filemanip import fname_presuffix
3636
from ..base import traits, isdefined, CommandLine, CommandLineInputSpec
37+
from ...external.due import BibTeX
3738

3839
LOGGER = logging.getLogger('interface')
3940

@@ -157,6 +158,48 @@ class FSLCommand(CommandLine):
157158
input_spec = FSLCommandInputSpec
158159
_output_type = None
159160

161+
references_ = [{'entry': BibTeX('@article{WoolrichJbabdiPatenaudeChappellMakniBehrens'
162+
'BeckmannJenkinsonSmith2009,'
163+
'author={M.W. Woolrich, S. Jbabdi, B. Patenaude, M. Chappell, '
164+
'S. Makni, T. Behrens, C. Beckmann, M. Jenkinson, and S.M. Smith},'
165+
'title={Bayesian analysis of neuroimaging data in FSL},'
166+
'journal={NeuroImage},'
167+
'volume={45},'
168+
'number={1},'
169+
'pages={S173-186},'
170+
'year={2009},'
171+
'}'),
172+
'tags': ['implementation'],
173+
},
174+
{'entry': BibTeX('@article{SmithJenkinsonWoolrichBeckmannBehrensJohansen'
175+
'BergBannisterDeLucaDrobnjakFlitneyNiazySaundersVickers'
176+
'ZhangDeStefanoBradyMatthews2004,'
177+
'author={S.M. Smith, M. Jenkinson, M.W. Woolrich, C.F. Beckmann, '
178+
'T.E.J. Behrens, H. Johansen-Berg, P.R. Bannister, M. De Luca, '
179+
'I. Drobnjak, D.E. Flitney, R. Niazy, J. Saunders, J. Vickers, '
180+
'Y. Zhang, N. De Stefano, J.M. Brady, and P.M. Matthews},'
181+
'title={Advances in functional and structural MR image analysis '
182+
'and implementation as FSL},'
183+
'journal={NeuroImage},'
184+
'volume={23},'
185+
'number={S1},'
186+
'pages={208-219},'
187+
'year={2004},'
188+
'}'),
189+
'tags': ['implementation'],
190+
},
191+
{'entry': BibTeX('@article{JenkinsonBeckmannBehrensWoolrichSmith2012,'
192+
'author={M. Jenkinson, C.F. Beckmann, T.E. Behrens, '
193+
'M.W. Woolrich, and S.M. Smith},'
194+
'title={FSL},'
195+
'journal={NeuroImage},'
196+
'volume={62},'
197+
'pages={782-790},'
198+
'year={2012},'
199+
'}'),
200+
'tags': ['implementation'],
201+
}]
202+
160203
def __init__(self, **inputs):
161204
super(FSLCommand, self).__init__(**inputs)
162205
self.inputs.on_trait_change(self._output_update, 'output_type')

0 commit comments

Comments
 (0)