-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MAINT] Delete
clinica.utils.mri_registration
module (#1139)
- Loading branch information
1 parent
4dc5bbb
commit e565fba
Showing
5 changed files
with
183 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""This module contains Nipype tasks used by the connectome pipeline. | ||
Nipype tasks must be 'self-contained' such that only primitive type hints can be | ||
used. The tasks are simple wrappers around a properly implemented Python function. | ||
""" | ||
|
||
|
||
def convert_flirt_to_mrtrix_transformation_task( | ||
source_image: str, | ||
reference_image: str, | ||
flirt_matrix: str, | ||
name_output_matrix=None, | ||
) -> str: | ||
"""Adapter for Nipype""" | ||
|
||
from pathlib import Path | ||
|
||
from clinica.pipelines.dwi.connectome.utils import ( | ||
convert_flirt_to_mrtrix_transformation, | ||
) | ||
|
||
if name_output_matrix is not None: | ||
name_output_matrix = Path(name_output_matrix) | ||
|
||
return str( | ||
convert_flirt_to_mrtrix_transformation( | ||
Path(source_image), | ||
Path(reference_image), | ||
Path(flirt_matrix), | ||
name_output_matrix, | ||
) | ||
) |
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 was deleted.
Oops, something went wrong.
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