File format conversion

File format conversion utility functions.

dcm2nii(files, out, dst, **kwargs)[source]

Convert DICOM files to NIfTI and write to disk.

Parameters:
  • files (List of Files) – List of File objects that represent the files to be converted.

  • out (str) – Output format desired.

  • dst (Layout) – Destination layout where converted files will be stored.

  • config (str) – Path to config file. Should be compatible with dcm2bids version installed.

Return type:

None

edf2asc(files, out, dst, **kwargs)[source]

Convert Eye track data format and write to disk.

nirx2snirf(files, out, dst, **kwargs)[source]

Convert NIRS data format and write to disk.

eeg_converter(files, out, dst, **kwargs)[source]

Convert EEG data format and write to disk.

convert(files, out, dst, **kwargs)[source]

Convert a file collection from one format to another.