kwneuro.external

Classes

TemporaryDwiFiles

Temporary file paths for a DWI volume and FSL gradient sidecars.

Functions

temporary_volume_file(...)

Write a volume to a temporary NIfTI file for an external file-based tool.

temporary_dwi_files(...)

Write a DWI to temporary NIfTI/FSL files for an external file-based tool.

temporary_structural_file(...)

Write a structural image to a temporary NIfTI file for an external tool.

Module Contents

class kwneuro.external.TemporaryDwiFiles

Temporary file paths for a DWI volume and FSL gradient sidecars.

volume: pathlib.Path
bval: pathlib.Path
bvec: pathlib.Path
kwneuro.external.temporary_volume_file(volume: kwneuro.resource.VolumeResource, *, filename: str = 'volume.nii.gz') collections.abc.Iterator[pathlib.Path]

Write a volume to a temporary NIfTI file for an external file-based tool.

kwneuro.external.temporary_dwi_files(dwi: kwneuro.dwi.Dwi, *, basename: str = 'dwi') collections.abc.Iterator[TemporaryDwiFiles]

Write a DWI to temporary NIfTI/FSL files for an external file-based tool.

kwneuro.external.temporary_structural_file(structural: kwneuro.structural.StructuralImage, *, filename: str = 'structural.nii.gz') collections.abc.Iterator[pathlib.Path]

Write a structural image to a temporary NIfTI file for an external tool.