-
Notifications
You must be signed in to change notification settings - Fork 520
/
generateaveragelmkfile.py
59 lines (47 loc) · 1.63 KB
/
generateaveragelmkfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
# -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import (
CommandLine,
CommandLineInputSpec,
SEMLikeCommandLine,
TraitedSpec,
File,
Directory,
traits,
isdefined,
InputMultiPath,
OutputMultiPath,
)
import os
class GenerateAverageLmkFileInputSpec(CommandLineInputSpec):
inputLandmarkFiles = InputMultiPath(
traits.Str,
desc="Input landmark files names (.fcsv or .wts)",
sep=",",
argstr="--inputLandmarkFiles %s",
)
outputLandmarkFile = traits.Either(
traits.Bool,
File(),
hash_files=False,
desc="Ouput landmark file name that includes average values for landmarks (.fcsv or .wts)",
argstr="--outputLandmarkFile %s",
)
class GenerateAverageLmkFileOutputSpec(TraitedSpec):
outputLandmarkFile = File(
desc="Ouput landmark file name that includes average values for landmarks (.fcsv or .wts)",
exists=True,
)
class GenerateAverageLmkFile(SEMLikeCommandLine):
"""title: Average Fiducials
category: Testing
description: This program gets several fcsv file each one contains several landmarks with the same name but slightly different coordinates. For EACH landmark we compute the average coordination.
contributor: Ali Ghayoor
"""
input_spec = GenerateAverageLmkFileInputSpec
output_spec = GenerateAverageLmkFileOutputSpec
_cmd = " GenerateAverageLmkFile "
_outputs_filenames = {"outputLandmarkFile": "outputLandmarkFile"}
_redirect_x = False