# IDC MRI-DIR: Head and Neck Squamous Cell Carcinoma MRI, CT (9 phantom subjects)

## Facts

- Provider: NCI Imaging Data Commons; MRI-DIR contributors; tables and sample by Scigantic
- License: Per series (series.parquet license_short_name): CC BY 4.0 61. Cite the source DOI(s) and the IDC.
- Size: 4 parquet tables plus 15 sample DICOM files (2 MB)
- Records: 9 phantom subjects, 25 studies, 61 series; 1.4 GB in IDC
- Stored at: Amazon S3, s3://scigantic-idc-open/mri_dir (us-east-1)
- Access: public, readable without an account
- DOI: https://doi.org/10.7937/k9/tcia.2018.3f08iejt
- Category: Health & Biomedical
- Source: https://portal.imaging.datacommons.cancer.gov/explore/filters/?collection_id=mri_dir
- Page: https://scigantic.com/archive/43f097fb-27fd-5892-9c80-47dd89f36766
- Keywords: Health & Biomedical, MRI, CT, AWS Open Data

## About

MRI-DIR on the NCI Imaging Data Commons (IDC v25): 9 phantom subjects, 25 studies, 61 DICOM series, 1.4 GB. Cancer type: Head and Neck Squamous Cell Carcinoma; location: Head-Neck, Phantom. Modalities: MR 48 series, RTSTRUCT 8 series, CT 5 series. Species: Phantom. This Scigantic archive is the collection's complete series-, study- and patient-level metadata as parquet (from idc-index, IDC v25), and a real sample of the images: one MR series, complete (2 MB, CC BY 4.0); one RTSTRUCT series, complete (0 MB, CC BY 4.0). Every series row carries its public S3 location (s3://idc-open-data/ /), so any series can be pulled on demand with anonymous boto3; the collection itself is not copied. License: CC BY 4.0 (61 series). IDC's description: Two image sets built to measure deformable image registration accuracy in MRI: CT, T1- and T2-weighted images of a porcine phantom compressed into four different positions, and synthetic head and neck images derived from 28 head and neck squamous cell carcinoma patients scanned before, during and after radiotherapy. Gold markers implanted in the phantom are visible on CT but not on MR, so they provide ground-truth landmarks without interfering with MR-to-MR registration. Please see the MRI-DIR (https://doi.org/10.7937/K9/TCIA.2018.3f08iejt) page to learn more about the images and to obtain any supporting metadata for this collection.

## Load the data

```python
# MRI-DIR: what is in the collection, and one real MR series from the sample folder
import os, glob, pandas as pd, numpy as np
M = os.environ.get('SCIGANTIC_MOUNT_PATH', '/mnt/archive')
series = pd.read_parquet(f'{M}/series.parquet')
print(series.groupby('Modality').agg(series=('SeriesInstanceUID', 'count'), patients=('PatientID', 'nunique'), GB=('series_size_MB', lambda s: round(s.sum() / 1024, 1))))
import pydicom
files = sorted(glob.glob(f'{M}/sample/MR_1.3.6.1.4.1.14519.5.2.1.1706.4996.159386900817642233544085208072/*.dcm'))
ds = pydicom.dcmread(files[0])
print(len(files), 'files;', ds.Modality, ds.get('Rows'), 'x', ds.get('Columns'), ds.get('ImageType'))
```

Written for a Scigantic notebook, where /mnt/archive (SCIGANTIC_MOUNT_PATH) is the mounted dataset.

## Data structure

| Field | Type |
| --- | --- |
| `collection_id` | str |
| `PatientID` | str |
| `SeriesInstanceUID` | str |
| `StudyInstanceUID` | str |
| `source_DOI` | str |
| `PatientAge` | str |
| `PatientSex` | str |
| `StudyDate` | str |
| `BodyPartExamined` | str |
| `Modality` | str |
| `Manufacturer` | str |
| `SeriesDescription` | str |
| `instanceCount` | Int64 |
| `license_short_name` | str |
| `aws_bucket` | str |
| `crdc_series_uuid` | str |
| `series_aws_url` | str |
| `series_size_MB` | float64 |

Files:

```text
patients.parquet  9 x 7
samples.parquet  2 x 13
series.parquet  61 x 31
studies.parquet  25 x 9
sample/MR_1.3.6.1.4.1.14519.5.2.1.1706.4996.159386900817642233544085208072/  14 .dcm (1.9 MB, CC BY 4.0)
sample/RTSTRUCT_1.3.6.1.4.1.14519.5.2.1.1706.4996.117054388159255463530055739230/  1 .dcm (0.0 MB, CC BY 4.0)
```

Example file: `series.parquet row: PatientID MRI-DIR-T1_1, Modality MR, 14 instances, 1.9 MB, s3://idc-open-data/52a5bc02-69e7-4d86-aa79-884b7649c818/*`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/43f097fb-27fd-5892-9c80-47dd89f36766
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/43f097fb-27fd-5892-9c80-47dd89f36766
- Over MCP: `get_schema_card` with id `43f097fb-27fd-5892-9c80-47dd89f36766` at https://api.scigantic.com/mcp

## Related topics

- [MRI datasets](https://scigantic.com/topics/mri)
- [Health & Biomedical datasets](https://scigantic.com/topics/health-and-biomedical)
- [CT datasets](https://scigantic.com/topics/ct)
