Skip to content

Commit d061186

Browse files
authored
Merge pull request #1961 from tsalo/flameo-doc
[DOC] Update FLAMEO documentation and references.
2 parents e7e2c00 + 0aa65d8 commit d061186

File tree

1 file changed

+31
-8
lines changed

1 file changed

+31
-8
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from ... import LooseVersion
2525
from ...utils.filemanip import list_to_filename, filename_to_list
2626
from ...utils.misc import human_order_sorted
27+
from ...external.due import BibTeX
2728
from ..base import (load_template, File, traits, isdefined,
2829
TraitedSpec, BaseInterface, Directory,
2930
InputMultiPath, OutputMultiPath,
@@ -931,14 +932,14 @@ class FLAMEO(FSLCommand):
931932
Initialize FLAMEO with no options, assigning them when calling run:
932933
933934
>>> from nipype.interfaces import fsl
934-
>>> import os
935-
>>> flameo = fsl.FLAMEO(cope_file='cope.nii.gz', \
936-
var_cope_file='varcope.nii.gz', \
937-
cov_split_file='cov_split.mat', \
938-
design_file='design.mat', \
939-
t_con_file='design.con', \
940-
mask_file='mask.nii', \
941-
run_mode='fe')
935+
>>> flameo = fsl.FLAMEO()
936+
>>> flameo.inputs.cope_file = 'cope.nii.gz'
937+
>>> flameo.inputs.var_cope_file = 'varcope.nii.gz'
938+
>>> flameo.inputs.cov_split_file = 'cov_split.mat'
939+
>>> flameo.inputs.design_file = 'design.mat'
940+
>>> flameo.inputs.t_con_file = 'design.con'
941+
>>> flameo.inputs.mask_file = 'mask.nii'
942+
>>> flameo.inputs.run_mode = 'fe'
942943
>>> flameo.cmdline # doctest: +ALLOW_UNICODE
943944
'flameo --copefile=cope.nii.gz --covsplitfile=cov_split.mat --designfile=design.mat --ld=stats --maskfile=mask.nii --runmode=fe --tcontrastsfile=design.con --varcopefile=varcope.nii.gz'
944945
@@ -948,6 +949,28 @@ class FLAMEO(FSLCommand):
948949
input_spec = FLAMEOInputSpec
949950
output_spec = FLAMEOOutputSpec
950951

952+
references_ = [{'entry': BibTeX('@article{BeckmannJenkinsonSmith2003,'
953+
'author={C.F. Beckmann, M. Jenkinson, and S.M. Smith},'
954+
'title={General multilevel linear modeling for group analysis in FMRI.},'
955+
'journal={NeuroImage},'
956+
'volume={20},'
957+
'pages={1052-1063},'
958+
'year={2003},'
959+
'}'),
960+
'tags': ['method'],
961+
},
962+
{'entry': BibTeX('@article{WoolrichBehrensBeckmannJenkinsonSmith2004,'
963+
'author={M.W. Woolrich, T.E. Behrens, '
964+
'C.F. Beckmann, M. Jenkinson, and S.M. Smith},'
965+
'title={Multilevel linear modelling for FMRI group analysis using Bayesian inference.},'
966+
'journal={NeuroImage},'
967+
'volume={21},'
968+
'pages={1732-1747},'
969+
'year={2004},'
970+
'}'),
971+
'tags': ['method'],
972+
}]
973+
951974
# ohinds: 2010-04-06
952975
def _run_interface(self, runtime):
953976
log_dir = self.inputs.log_dir

0 commit comments

Comments
 (0)