Skip to content

Data preparation

Kwok-Shing Chan edited this page May 5, 2019 · 8 revisions

Sepia supports the following type of data input:

  1. uncompressed or compressed NIfTI images (.nii and .nii.gz)

DICOM images

DICOM images input has been deprecated since v.0.7.0.

NIfTI images

Data conversion

NIfTI data is a handy way to work with Sepia. Sepia is mainly designed for multi-echo GRE (mGRE) data. Therefore, the main standalone of Sepia can only work with 4D (row, column, slice, time) NIfTI data (3D for some standalone applications).

So far there are three data conversion tools tested in Sepia:

  1. One way to convert DICOM images into 4D NIfTI data is to use MRIConvert with the following setting checked:
    'Option' -> 'Save multivolumes series as 4D files'

    In this way, your mGRE data will be stored as 4D FSL NIfTI data that is a valid input of Sepia.

  2. Alternatively, you can also use dcm2niix to convert your data. Please make sure the 'merge' option (-m) is set to 'no' for the conversion (i.e. dcm2niix -m n). In this way, multiple 3D volumes (the number of volumes depends on the number of echoes acquired) will be created together with the JSON files containing the TE of each echo (if you enable the merge option of dcm2niix you will only have one JSON file containing one TE). You can then merge the echo images into 4D using tools like fslmerge.

  3. File formats generated by dicm2nii are also supported in Sepia.

Data input

Once you have the NIfTI files ready, Sepia provides two options to load the data:

  • select the required files directly, or
  • prepare the data with specific names and put all of them in a common directory, from which you can specify the input directory in Sepia. The name requirement depends on the standalone you are working on. For more specific details please check the wiki pages of each standalone applications.