Skip to content

Commit 3107a6d

Browse files
authored
Merge pull request #1930 from tsalo/master
[DOC] Add duecredit references for AFNI and FSL.
2 parents 56b2a62 + 81367a0 commit 3107a6d

File tree

4 files changed

+54
-3
lines changed

4 files changed

+54
-3
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,8 +1387,8 @@ 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
1391-
---------
1390+
Parameters
1391+
----------
13921392
pid : integer
13931393
the process ID of process to profile
13941394
mem_mb : float

nipype/interfaces/fsl/base.py

Lines changed: 13 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,18 @@ class FSLCommand(CommandLine):
157158
input_spec = FSLCommandInputSpec
158159
_output_type = None
159160

161+
references_ = [{'entry': BibTeX('@article{JenkinsonBeckmannBehrensWoolrichSmith2012,'
162+
'author={M. Jenkinson, C.F. Beckmann, T.E. Behrens, '
163+
'M.W. Woolrich, and S.M. Smith},'
164+
'title={FSL},'
165+
'journal={NeuroImage},'
166+
'volume={62},'
167+
'pages={782-790},'
168+
'year={2012},'
169+
'}'),
170+
'tags': ['implementation'],
171+
}]
172+
160173
def __init__(self, **inputs):
161174
super(FSLCommand, self).__init__(**inputs)
162175
self.inputs.on_trait_change(self._output_update, 'output_type')

0 commit comments

Comments
 (0)