Skip to content

[DOC] Update FLAMEO documentation and references. #1961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 31 additions & 8 deletions nipype/interfaces/fsl/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from ... import LooseVersion
from ...utils.filemanip import list_to_filename, filename_to_list
from ...utils.misc import human_order_sorted
from ...external.due import BibTeX
from ..base import (load_template, File, traits, isdefined,
TraitedSpec, BaseInterface, Directory,
InputMultiPath, OutputMultiPath,
Expand Down Expand Up @@ -931,14 +932,14 @@ class FLAMEO(FSLCommand):
Initialize FLAMEO with no options, assigning them when calling run:

>>> from nipype.interfaces import fsl
>>> import os
>>> flameo = fsl.FLAMEO(cope_file='cope.nii.gz', \
var_cope_file='varcope.nii.gz', \
cov_split_file='cov_split.mat', \
design_file='design.mat', \
t_con_file='design.con', \
mask_file='mask.nii', \
run_mode='fe')
>>> flameo = fsl.FLAMEO()
>>> flameo.inputs.cope_file = 'cope.nii.gz'
>>> flameo.inputs.var_cope_file = 'varcope.nii.gz'
>>> flameo.inputs.cov_split_file = 'cov_split.mat'
>>> flameo.inputs.design_file = 'design.mat'
>>> flameo.inputs.t_con_file = 'design.con'
>>> flameo.inputs.mask_file = 'mask.nii'
>>> flameo.inputs.run_mode = 'fe'
>>> flameo.cmdline # doctest: +ALLOW_UNICODE
'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'

Expand All @@ -948,6 +949,28 @@ class FLAMEO(FSLCommand):
input_spec = FLAMEOInputSpec
output_spec = FLAMEOOutputSpec

references_ = [{'entry': BibTeX('@article{BeckmannJenkinsonSmith2003,'
'author={C.F. Beckmann, M. Jenkinson, and S.M. Smith},'
'title={General multilevel linear modeling for group analysis in FMRI.},'
'journal={NeuroImage},'
'volume={20},'
'pages={1052-1063},'
'year={2003},'
'}'),
'tags': ['method'],
},
{'entry': BibTeX('@article{WoolrichBehrensBeckmannJenkinsonSmith2004,'
'author={M.W. Woolrich, T.E. Behrens, '
'C.F. Beckmann, M. Jenkinson, and S.M. Smith},'
'title={Multilevel linear modelling for FMRI group analysis using Bayesian inference.},'
'journal={NeuroImage},'
'volume={21},'
'pages={1732-1747},'
'year={2004},'
'}'),
'tags': ['method'],
}]

# ohinds: 2010-04-06
def _run_interface(self, runtime):
log_dir = self.inputs.log_dir
Expand Down