Question about how to get the header file #75
-
Hi, I currently possess magnitude and phase maps in NIFTI format. However, I find myself in need of the corresponding header files for these images. When I tried to use 'Get header info' in the 'Utility' tab of the GUI to generate header file, I got 'No TE file is identified.' errors. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Unfortunately, the echo time information is not commonly stored in the NIFTI header. There are several ways to extract the TE info from other file formats: Option 1: JSON file(s) from dcm2niixIf the NIFTI files were generated from dcm2niix, there should be JSON sidecar files accompanied by the NIFTI. You can select all JSON files associated with the (multi-echo) data using the 'and TE file(s)' under the 'Get header info' utility. Option 2: a single JSON file from dicm2niiIf dicm2nii was used to create the NIFTI, all TEs will be stored in a single JSON file instead. Option 3: A text fileIf MRIConvert was used to create the NIFTI, the TE info is stored in a separate text file. Option 4: A Matlab's .mat fileThe '.mat' file should have the TE info stored under the variable name 'TE' in a unit of second. It might be useful if there is already a sepia_header.mat available (e.g. from another dataset with the same TE) Option 5: User input via GUIIf none of the above options works, you can also manually enter the echo time (see example below) Option 6: User input via command windowsAs a last resort you can also manually create the sepia_header.mat file using the command window. Here is an example:
Just replace 'te1', te2', etc. with the real values. You may find more info on the documentation webpage: https://sepia-documentation.readthedocs.io/en/latest/getting_started/Sepia-header.html Let me know if this helps! Kwok |
Beta Was this translation helpful? Give feedback.
Hi,
Unfortunately, the echo time information is not commonly stored in the NIFTI header. There are several ways to extract the TE info from other file formats:
Option 1: JSON file(s) from dcm2niix
If the NIFTI files were generated from dcm2niix, there should be JSON sidecar files accompanied by the NIFTI. You can select all JSON files associated with the (multi-echo) data using the 'and TE file(s)' under the 'Get header info' utility.
Example JSON files:
Select all JSON files here
Option 2: a single JSON file from dicm2nii
If dicm2nii was used to create the NIFTI, all TEs will be stored in a single JSON file instead.
Option 3: A text file
If MRIConvert was used to create the NIFTI, the …