# DICOM data wrangling

In this part of the tutorial we will learn how to work with a DICOM dataset spanning different TCIA collections and containing various types of DICOM objects.&#x20;

### Hands-on demo notes

* TCIA as a use case
  * [LIDC-IDRI](https://wiki.cancerimagingarchive.net/display/Public/LIDC-IDRI) (annotations in XML)
  * [TCGA-GBM](https://wiki.cancerimagingarchive.net/display/Public/TCGA-GBM) ([annotations in NIfTI](https://wiki.cancerimagingarchive.net/display/DOI/Segmentation+Labels+and+Radiomic+Features+for+the+Pre-operative+Scans+of+the+TCGA-GBM+collection))
  * [TCGA-LGG](https://wiki.cancerimagingarchive.net/display/Public/TCGA-LGG) ([annotations in NIfTI](https://wiki.cancerimagingarchive.net/display/DOI/Segmentation+Labels+and+Radiomic+Features+for+the+Pre-operative+Scans+of+the+TCGA-LGG+collection))
  * [QIN-HEADNECK](https://wiki.cancerimagingarchive.net/display/Public/QIN-HEADNECK)
  * QIN-PROSTATE-Repeatability (not yet released)
* discuss the example dataset used in the demo
* steps for handling DICOM data:
  * [dicomsort](https://github.com/pieper/dicomsort)
  * [dcm2niix](https://github.com/rordenlab/dcm2niix) for converting image series into volumes
  * [dcmqi](https://github.com/qiicr/dcmqi) for working with SEG and SR
  * [dcm2tables](https://github.com/QIICR/dcm2tables): conversion into tabular representation for working with metadata
    * "database" [visual schema](<https://app.quickdatabasediagrams.com/#/schema/_71V1H1AXEqqKWDnvx4VXw >)
  * Jupyter Notebook demonstration

This part will be covered in [this Jupyter Notebook](https://github.com/QIICR/dicom4miccai-handson/blob/master/notebooks/multicollection.ipynb).

### QIN-HEADNECK collection exploration&#x20;

See [this Jupyter Notebook](https://github.com/QIICR/dicom4miccai-handson/blob/master/notebooks/headneck.ipynb) we developed for DICOM4MICCAI 2017.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qiicr.gitbook.io/dicom4miccai-handson/dicom-explore.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
