generated from nipype/pydra-tasks-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imported newly generated auto-conv templates
- Loading branch information
Showing
78 changed files
with
4,523 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
"""Module to put any functions that are referred to in AffineInitializer.yaml""" | ||
"""Module to put any functions that are referred to in the "callables" section of AffineInitializer.yaml""" | ||
|
||
import os | ||
|
||
|
||
def out_file_callable(output_dir, inputs, stdout, stderr): | ||
outputs = _list_outputs( | ||
output_dir=output_dir, inputs=inputs, stdout=stdout, stderr=stderr | ||
) | ||
return outputs["out_file"] | ||
|
||
|
||
# Original source at L885 of <nipype-install>/interfaces/base/core.py | ||
def _gen_filename(name, inputs=None, stdout=None, stderr=None, output_dir=None): | ||
raise NotImplementedError | ||
|
||
|
||
# Original source at L834 of <nipype-install>/interfaces/ants/utils.py | ||
def _list_outputs(inputs=None, stdout=None, stderr=None, output_dir=None): | ||
return {"out_file": os.path.abspath(inputs.out_file)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
"""Module to put any functions that are referred to in AI.yaml""" | ||
"""Module to put any functions that are referred to in the "callables" section of AI.yaml""" | ||
|
||
|
||
def output_transform_callable(output_dir, inputs, stdout, stderr): | ||
outputs = _list_outputs( | ||
output_dir=output_dir, inputs=inputs, stdout=stdout, stderr=stderr | ||
) | ||
return outputs["output_transform"] | ||
|
||
|
||
# Original source at L885 of <nipype-install>/interfaces/base/core.py | ||
def _gen_filename(name, inputs=None, stdout=None, stderr=None, output_dir=None): | ||
raise NotImplementedError | ||
|
||
|
||
# Original source at L539 of <nipype-install>/interfaces/ants/utils.py | ||
def _list_outputs(inputs=None, stdout=None, stderr=None, output_dir=None): | ||
return getattr(self, "_output") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,60 @@ | ||
"""Module to put any functions that are referred to in ANTS.yaml""" | ||
"""Module to put any functions that are referred to in the "callables" section of ANTS.yaml""" | ||
|
||
import os | ||
|
||
|
||
def affine_transform_callable(output_dir, inputs, stdout, stderr): | ||
outputs = _list_outputs( | ||
output_dir=output_dir, inputs=inputs, stdout=stdout, stderr=stderr | ||
) | ||
return outputs["affine_transform"] | ||
|
||
|
||
def inverse_warp_transform_callable(output_dir, inputs, stdout, stderr): | ||
outputs = _list_outputs( | ||
output_dir=output_dir, inputs=inputs, stdout=stdout, stderr=stderr | ||
) | ||
return outputs["inverse_warp_transform"] | ||
|
||
|
||
def metaheader_callable(output_dir, inputs, stdout, stderr): | ||
outputs = _list_outputs( | ||
output_dir=output_dir, inputs=inputs, stdout=stdout, stderr=stderr | ||
) | ||
return outputs["metaheader"] | ||
|
||
|
||
def metaheader_raw_callable(output_dir, inputs, stdout, stderr): | ||
outputs = _list_outputs( | ||
output_dir=output_dir, inputs=inputs, stdout=stdout, stderr=stderr | ||
) | ||
return outputs["metaheader_raw"] | ||
|
||
|
||
def warp_transform_callable(output_dir, inputs, stdout, stderr): | ||
outputs = _list_outputs( | ||
output_dir=output_dir, inputs=inputs, stdout=stdout, stderr=stderr | ||
) | ||
return outputs["warp_transform"] | ||
|
||
|
||
# Original source at L885 of <nipype-install>/interfaces/base/core.py | ||
def _gen_filename(name, inputs=None, stdout=None, stderr=None, output_dir=None): | ||
raise NotImplementedError | ||
|
||
|
||
# Original source at L242 of <nipype-install>/interfaces/ants/registration.py | ||
def _list_outputs(inputs=None, stdout=None, stderr=None, output_dir=None): | ||
outputs = {} | ||
outputs["affine_transform"] = os.path.abspath( | ||
inputs.output_transform_prefix + "Affine.txt" | ||
) | ||
outputs["warp_transform"] = os.path.abspath( | ||
inputs.output_transform_prefix + "Warp.nii.gz" | ||
) | ||
outputs["inverse_warp_transform"] = os.path.abspath( | ||
inputs.output_transform_prefix + "InverseWarp.nii.gz" | ||
) | ||
# outputs['metaheader'] = os.path.abspath(inputs.output_transform_prefix + 'velocity.mhd') | ||
# outputs['metaheader_raw'] = os.path.abspath(inputs.output_transform_prefix + 'velocity.raw') | ||
return outputs |
Oops, something went wrong.