Skip to content

Commit 1b0b9f4

Browse files
author
Jessey Wright
committed
Added examples to Mema Interface
1 parent a204ce0 commit 1b0b9f4

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

nipype/interfaces/afni/model.py

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,7 @@ class MemaOutputSpec(AFNICommandOutputSpec):
916916
desc='...',
917917
exists=True
918918
)
919+
919920
args = File(
920921
desc='Arguments file for debugging, generated if -dbArgs is set')
921922

@@ -931,8 +932,32 @@ class Mema(AFNICommand):
931932
932933
>>> from nipype.interfaces import afni
933934
>>> mema = afni.Mema()
934-
>>> mema.inputs.in_files = [...]
935-
...
935+
>>> mema.inputs.sets = ['analysis_name', [[subject_1, s1_betas, s1_t, numb1, numt1], [subject2, s2_bets, s2_ts, numb2, numt2], ...]]
936+
>>> mema.inputs.max_zeros = 4
937+
>>> mema.inputs.model_outliers = True
938+
>>> mema.inputs.residual_z = True
939+
>>> mema.inputs.out_file = 'Results.BRIK'
940+
941+
>>> from nipype.interfaces import afni
942+
>>> mema = afni.Mema()
943+
>>> mema.inputs.missing_data['File1', 'File2']
944+
>>> mema.inputs.sets = ['analysis_name', [[subject_1, s1_betas, s1_ts], [subject2, s2_bets, s2_ts], ...]]
945+
>>> mema.inputs.out_file = 'Results.BRIK'
946+
947+
>>> from nipype.interfaces import afni
948+
>>> mema = afni.Mema()
949+
>>> mema.inputs.groups = ['group1', 'group2']
950+
>>> mema.inputs.sets = ['analysis1_name', [[subject_1, s1_betas, s1_ts], [subject2, s2_bets, s2_ts], ...]]
951+
>>> mema.inputs.sets = ['analysis2_name', [[subject_1, s1_betas, s1_ts], [subject2, s2_bets, s2_ts], ...]]
952+
>>> mema.inputs.n_nonzero = 18
953+
>>> mema.inputs.hktest = True
954+
>>> mema.inputs.outliers = True
955+
>>> mema.inputs.equal_variance = False
956+
>>> mema.inputs.residual_z = True
957+
>>> mema.inputs.covariates = 'CovFile.txt'
958+
>>> mema.inputs.covariates_center = 'age = 25 13 weight = 100 150'
959+
>>> mema.inputs.covariates_model = ['different', 'same']
960+
>>> mema.inputs.out_file = 'Results.BRIK'
936961
937962
"""
938963

0 commit comments

Comments
 (0)