qsirecon.interfaces.utils module
Miscellaneous utilities
- class qsirecon.interfaces.utils.ConformAtlas(from_file=None, resource_monitor=None, **inputs)[source]
Bases:
SimpleInterfaceConform a series of dwi images to enable merging.
Performs three basic functions: #. Orient image to requested orientation #. Validate the qform and sform, set qform code to 1
- Mandatory Inputs:
in_file (a pathlike object or string representing a file) – Dwi image.
- Optional Inputs:
orientation (‘LPS’ or ‘LAS’) – (Nipype default value:
LPS)- Outputs:
out_file (a pathlike object or string representing an existing file) – Conformed dwi image.
- class qsirecon.interfaces.utils.TestReportPlot(from_file=None, resource_monitor=None, **inputs)[source]
Bases:
SimpleInterface- Mandatory Inputs:
dwi_file (a pathlike object or string representing an existing file)
- Outputs:
out_file (a pathlike object or string representing an existing file)
- class qsirecon.interfaces.utils.WarpConnectivityAtlases(from_file=None, resource_monitor=None, **inputs)[source]
Bases:
SimpleInterface- Mandatory Inputs:
atlas_configs (a dictionary with keys which are any value and with values which are any value) – Dictionary of atlas configurations. Keys are atlas names and values are dictionaries with the following keys: ‘file’, ‘label’, ‘metadata’. ‘file’ is the path to the atlas file. ‘label’ is the path to the label file. ‘metadata’ is a dictionary with relevant metadata. ‘xfm_to_anat’ is the path to the transform to get the atlas into T1w space.
- Optional Inputs:
reference_image (a pathlike object or string representing an existing file)
space (a string) – (Nipype default value:
T1w)
- Outputs:
atlas_configs (a dictionary with keys which are any value and with values which are any value) – Dictionary of atlas configurations. This interface adds the following keys: ‘dwi_resolution_file’, ‘dwi_resolution_mif’, ‘orig_lut’, ‘mrtrix_lut’. The values are the paths to the transformed atlas files and the label files.
commands (a pathlike object or string representing a file)
- class qsirecon.interfaces.utils.WriteSidecar(from_file=None, resource_monitor=None, **inputs)[source]
Bases:
SimpleInterface- Optional Inputs:
metadata (a dictionary with keys which are any value and with values which are any value)
- Outputs:
out_file (a pathlike object or string representing an existing file)