skbold.core.convert_to_epi module¶
-
convert2epi
(file2transform, reg_dir, out_dir=None, interpolation='trilinear', suffix='epi', overwrite=False)[source]¶ Transforms a nifti from mni152 (2mm) to EPI (native) format. Assuming that reg_dir is a directory with transformation-files (warps) including standard2example_func warps, this function uses nipype’s fsl interface to flirt a nifti to EPI format.
Parameters: - file2transform (str or list) – Absolute path(s) to nifti file(s) that needs to be transformed
- reg_dir (str) – Absolute path to registration directory with warps
- out_dir (str) – Absolute path to desired out directory. Default is same directory as the to-be transformed file.
- interpolation (str) – Interpolation used by flirt. Default is ‘trilinear’.
- suffix (str) – What to suffix the transformed file with (default : ‘epi’)
- overwrite (bool) – Whether to overwrite existing transformed files
Returns: out_all – Absolute path(s) to newly transformed file(s).
Return type: list