@@ -954,6 +954,54 @@ def _gen_outfilename(self):
954
954
return name + ext + "_converted." + self .inputs .out_datatype
955
955
956
956
957
+ class MRIsCombineInputSpec (FSTraitedSpec ):
958
+ """
959
+ Uses Freesurfer's mris_convert to combine two surface files into one.
960
+ """
961
+ in_file1 = File (exists = True , mandatory = True , position = 0 ,
962
+ argstr = '--combinesurfs %s' ,
963
+ desc = 'File to be combined with in_file2' )
964
+ in_file2 = File (exists = True , mandatory = True , position = 1 ,
965
+ argstr = '%s' ,
966
+ desc = 'File to be combined with in_file1' )
967
+ out_file = File (argstr = '%s' , position = - 1 , genfile = True ,
968
+ mandatory = True ,
969
+ desc = 'Output filename. Combined surfaces from in_file1 and '
970
+ 'in_file2.' )
971
+
972
+
973
+ class MRIsCombineOutputSpec (TraitedSpec ):
974
+ """
975
+ Uses Freesurfer's mris_convert to combine two surface files into one.
976
+ """
977
+ out_file = File (exists = True , desc = 'Output filename. Combined surfaces from '
978
+ 'in_file1 and in_file2.' )
979
+
980
+
981
+ class MRIsCombine (FSCommand ):
982
+ """
983
+ Uses Freesurfer's mris_convert to combine two surface files into one.
984
+
985
+ For complete details, see the `mris_convert Documentation.
986
+ <https://surfer.nmr.mgh.harvard.edu/fswiki/mris_convert>`_
987
+
988
+ Example
989
+ -------
990
+
991
+ >>> import nipype.interfaces.freesurfer as fs
992
+ >>> mris = fs.MRIsConvert()
993
+ >>> mris.inputs.in_file1 = 'lh.pial'
994
+ >>> mris.inputs.in_file2 = 'rh.pial'
995
+ >>> mris.inputs.out_file = 'bh.pial'
996
+ >>> mris.cmdline # doctest: +ALLOW_UNICODE
997
+ 'mris_convert --combine_surfs lh.pial rh.pial bh.pial'
998
+ >>> mris.run() # doctest: +SKIP
999
+ """
1000
+ _cmd = 'mris_convert'
1001
+ input_spec = MRIsCombineInputSpec
1002
+ output_spec = MRIsCombineOutputSpec
1003
+
1004
+
957
1005
class MRITessellateInputSpec (FSTraitedSpec ):
958
1006
"""
959
1007
Uses Freesurfer's mri_tessellate to create surfaces by tessellating a given input volume
0 commit comments