Skip to content

Latest commit

 

History

History
95 lines (59 loc) · 11.4 KB

README.md

File metadata and controls

95 lines (59 loc) · 11.4 KB

About

dcm2niix attempts to convert Siemens DICOM format images to NIfTI. This page describes some vendor-specific details.

Siemens X-Series

Siemens MR is named by Series, Generation, Major Version and Minor Version. Prior to the Siemens Vida, all contemporary Siemens MRI systems (Trio, Prisma, Skyra, etc) were part of the V series. So a Trio might be on VB17, and a Prisma on VE11 (series 'V', generation 'E', major version '1', minor version '1'). The 3T Vida and 1.5T Sola introduce the X-series (XA10, XA11, XA20). Since the V-series was dominant for so long, most users simply omit the series, e.g. referring to a system as B19. However, Siemens has recently introduced a new X-series.

The DICOM images exported by the X-series is radically different than the V-series. The images lack the proprietary CSA header with its rich meta data.

X-series users are strongly encouraged to export data using the "Enhanced" format and to not use any of the "Anonymize" features on the console. The consequences of these options is discussed in detail in issue 236. Siemens notes We highly recommend that the Enhanced DICOM format be used. This is because this format retains far more information in the header. Failure to export data in this format has led to catastrophic data loss for numerous users (for publicly reported details see issues 203, 236, 240, 274, 303, 370, 394). This reflects limitations of the DICOM data, not dcm2niix.

While X-series consoles allow users to export data as enhanced, mosaic or classic 2D formats, choosing an option other than enhanced dramatically degrades the meta data. Note that the Siemens considers mosaic images secondary capture data intended for quality assurance only. The mosaic scans lack several "Type 1" DICOM properties, necessarily limiting conversion. This is unfortunate, as for the V-series the mosaic format has major benefits, so users may be in the habit of preferring mosaic export. The non-mosaic 2D enhanced DICOMs are compact and efficient, but appear to have limited details relative to the previous generation V-series with its rich CSA header. Finally, each of the formats (enhanced, mosaic, classic) can be exported as anonymized. The Siemens console anonymization of current XA10A (Fall 2018) strips many useful tags. Siemens suggests the use an offline/in-house anonymization software instead. Another limitation of the current X-series format is that it retains no versioning details beyond the minor version for software and hardware stepping (e.g. versions are merely XA10 or XA11 with no details for service packs). If you use a X-series, you are strongly encouraged to manually log every hardware or software upgrade to allow future analyses to identify and regress out any effects of these modifications. Since the X-series format does not have a CSA header, dcm2niix will attempt to use the new private DICOM tags to populate the BIDS file. These tags are described in issue 240.

When creating enhanced DICOMs diffusion information is provided in public tags. Based on a limited sample, it seems that classic DICOMs do not store diffusion data for XA10, and use private tags for XA11.

Public Tags

(0018,9089) FD -0.20\-0.51\-0.83 #DiffusionGradientOrientation
(0018,9087) FD 1000 #DiffusionBValue

Private Tags

(0019,100c) IS 1000 #SiemensDiffusionBValue
(0019,100e) FD -0.20\-0.51\-0.83 #SiemensDiffusionGradientOrientation

In theory, the public DICOM tag 'Frame Acquisition Date Time' (0018,9074) and the private tag 'Time After Start' (0021,1104) should each allow one to infer slice timing. The tag 0018,9074 uses the DT (date time) format, for example "20190621095520.330000" providing the YYYYYMMDDHHMMSS. Unfortunately, the Siemens de-identification routines will scramble these values, as time of data could be considered an identifiable attribute. The tag 0021,1104 is saved in DS (decimal string) format, for example "4.635" reporting the number of seconds since acquisition started. Be aware that some Siemens Vida multi-band sequences appear to fill these tags with the single-band times rather than the actual acquisition times. Therefore, neither of these two methods is perfectly reliable in determining slice timing.

The private ICE_Dims (0021,1106) tag can prove useful for parsing data. The list below is specific to XA scans: SPM12 suggests that this tag used to contain fewer elements. dcm2niix will use 0021,1106 to deduce echo number for XA20 sequences that do not generate the public Echo Number (0018,0086) tag. For example, consider an image of the 4th echo and 160th slice:

(0021,1106) LO [X_4_1_1_1_1_160_1_1_1_1_1_277] #  ICE_Dims
  1. coi = coil number (X: combined from multiple coils)
  2. eco = echo number
  3. phs = phase encode
  4. set =
  5. rep = repetition
  6. seg = segment
  7. par = partition
  8. slc = slice
  9. idA = optional index
  10. idB = optional index
  11. idC = optional index
  12. avg = average number

CSA Header

Many crucial Siemens parameters are stored in the proprietary CSA header, in particular the CSA Image Header Info (0029, 1010) and CSA Series Header Info (0029, 1020). These have binary sections that allows quick reading for many useful parameters. They also include an ASCII text portion that includes a lot of information but is slow to parse and poorly curated. Be aware that Siemens Vida scanners do not generate a CSA header.

Slice Timing

See the dcm_qa_stc repository with sample data that exhibits different methods used by Siemens to record slice timing.

Older software (e.g. A25 through B13) sometimes populates the tag sSliceArray.ucMode in the CSA Series Header (0029, 1020) where the values 1, 2, and 4 correspond to Ascending, Descending and Interleaved acquisitions.

For software versions B15 through E11 where all slices of a volume are stored as a single mosaic file, the proprietary CSA Image Header (0029,1010) contains the array MosaicRefAcqTimes that provides slice timing. For volumes where each 2D slice is saved as a separate DICOM file, one can infer slice order from the DICOM tag Acquisition Time (0008,0032).

The prior section describes Vida slice timing issues seen with the XA software series. In brief, dcm2niix will use Frame Acquisition Time (0018,9074) to determine slice times. Some Siemens DICOMs store slice timings in the private tag 0019,1029. In theory, this could be used when the CSA header is missing. For archival studies, be aware that some sequences incorrectly reported slice timing. The SPM slice timing wiki provides further information on Siemens slice timing.

Total Readout Time

One often wants to determine echo spacing, bandwidth, and total read-out time for EPI data so they can be undistorted. The Siemens validation dataset demonstrates that dcm2niix can accurately report these parameters - the included notes and spreadsheet describe this in more detail.

Diffusion Tensor Notes

Diffusion specific parameters are described on the NA-MIC website. Gradient vectors are reported with respect to the scanner bore, and dcm2niix will attempt to re-orient these to FSL format bvec files.

For Siemens V-series systems from the B-generation onward (around 2005), the most reliable way to read diffusion gradients is from the CSA header. Specially, the CSA's 'DiffusionGradientDirection' and 'B_value' tags. For the X-series, the private DICOM tags B_value (0019,100c) and DiffusionGradientDirection (0019,100e) are used.

Arterial Spin Labeling

Tools like ExploreASL and FSL BASIL can help process arterial spin labeling data. These tools require sequence details. These details differ between different sequences. If you create a BIDS JSON file with dcm2niix, the following tags will be created, using the same names used in the Siemens sequence PDFs. Note different sequences provide different values. The dcm_qa_asl repository provides example DICOM ASL datasets. See the BIDS page for details.

The Siemens CSA header also stores some ASL details as a base64 stream. These can be read using gdcmdump, e.g. gdcmdump -i i001.dcm --csa-asl --print

Nonlinear Gradient Correction

dcm2niix does not populate the recommended NonlinearGradientCorrection BIDS tag. dcm2niix does save the DICOM Image Type (0008,0008) tag as ImageType, and recent versions will also export a private tag (0021,1175) as ImageTypeText. The inclusion of DIS2D or DIS3D in these one of these fields (the former prior to XA30, the latter with XA30 and later) is consistent with NonlinearGradientCorrection being true while ND suggests false. See issue 597 for further details.

Sample Datasets