{"success":true,"data":{"author":"NCI Imaging Data Commons; MRI-DIR contributors; tables and sample by Scigantic","bucketAccessType":"public","bucketListable":true,"bucketName":"scigantic-idc-open","bucketPrefix":"mri_dir/","category":"Health & Biomedical","cloudProvider":"aws","companionArchiveIds":["270d1e86-d234-4234-9cac-dc846bcad87f"],"createdAt":"2026-11-17T16:33:07.411Z","description":"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/<crdc_series_uuid>/), 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.","displayTitle":"IDC MRI-DIR: Head and Neck Squamous Cell Carcinoma MRI, CT (9 phantom subjects)","dockerImageUrl":"531775725781.dkr.ecr.us-east-1.amazonaws.com/scigantic-notebook-pathology:latest","doi":"10.7937/k9/tcia.2018.3f08iejt","fuseMountBrowsable":true,"id":"43f097fb-27fd-5892-9c80-47dd89f36766","license":"Per series (series.parquet license_short_name): CC BY 4.0 61. Cite the source DOI(s) and the IDC.","referenceUrl":"https://portal.imaging.datacommons.cancer.gov/explore/filters/?collection_id=mri_dir","region":"us-east-1","schemaCard":{"accessHints":[{"language":"python","snippet":"# Task: read this collection's tables from anywhere, no mount and no credentials (pip install scigantic-nci)\nfrom scigantic_nci import idc\nseries = idc.series('mri_dir')      # one row per DICOM series, with its public S3 location\npatients = idc.patients('mri_dir')\nprint(len(patients), 'patients;', series.Modality.value_counts().to_dict())\n# or without the library (needs s3fs): pd.read_parquet('s3://scigantic-idc-open/mri_dir/series.parquet', storage_options={'anon': True})\n# The other snippets read /mnt/archive, the mount path inside a Scigantic notebook; elsewhere use the frames above.\n"},{"language":"python","snippet":"# Task: pull one series from the IDC bucket on demand (anonymous S3)\nimport boto3, pandas as pd, os\nfrom botocore import UNSIGNED\nfrom botocore.config import Config\nseries = pd.read_parquet('/mnt/archive/series.parquet')\nrow = series[series.Modality == 'MR'].sort_values('series_size_MB').iloc[0]\nprint(row.PatientID, row.Modality, row.instanceCount, 'instances', round(row.series_size_MB, 1), 'MB')\ns3 = boto3.client('s3', region_name='us-east-1', config=Config(signature_version=UNSIGNED))\nos.makedirs('/tmp/series', exist_ok=True)\nfor o in s3.list_objects_v2(Bucket=row.aws_bucket, Prefix=row.crdc_series_uuid + '/')['Contents']:\n    s3.download_file(row.aws_bucket, o['Key'], '/tmp/series/' + o['Key'].split('/')[-1])\n"},{"language":"python","snippet":"# Task: stack a radiology series into a volume in acquisition order\nimport glob, numpy as np, pydicom\nds = [pydicom.dcmread(f) for f in glob.glob('/tmp/series/*.dcm')]\nds.sort(key=lambda d: (float(d.ImagePositionPatient[2]) if 'ImagePositionPatient' in d else 0.0, int(d.get('InstanceNumber', 0))))\nvol = np.stack([d.pixel_array for d in ds]).astype(np.float32)\nif ds[0].Modality == 'CT':\n    vol = vol * float(ds[0].get('RescaleSlope', 1)) + float(ds[0].get('RescaleIntercept', 0))  # Hounsfield units\nprint(vol.shape, ds[0].get('PixelSpacing'), ds[0].get('SliceThickness'))\n"},{"language":"python","snippet":"# Task: assemble one level of a DICOM whole-slide image from its tiles (pydicom only)\nimport numpy as np, pydicom\nd = pydicom.dcmread(path_to_level_dcm)\nframes = d.pixel_array\nframes = frames[None] if frames.ndim == 3 else frames\nR, C, r, c = int(d.TotalPixelMatrixRows), int(d.TotalPixelMatrixColumns), int(d.Rows), int(d.Columns)\nncol = -(-C // c)\ncanvas = np.zeros((-(-R // r) * r, ncol * c, 3), dtype=frames.dtype)\nfor i, f in enumerate(frames):\n    y, x = (i // ncol) * r, (i % ncol) * c\n    canvas[y:y + r, x:x + c] = f\nimage = canvas[:R, :C]  # or: from wsidicom import WsiDicom; WsiDicom.open(folder).read_region(...)\n"}],"caveats":["Layout: series.parquet (61 rows, one per DICOM series), studies.parquet, patients.parquet, samples.parquet (one row per mirrored sample with its license), sample/<Modality>_<SeriesInstanceUID>/*.dcm, README.md, BUILD_REPORT.json. The full collection (1.4 GB) is NOT on this mount; only the sample folders hold pixels.","Fetching a series: s3://idc-open-data/<crdc_series_uuid>/ holds one <instance_uuid>.dcm per SOP instance; the buckets are public and anonymous (botocore.UNSIGNED) reads work. Take crdc_series_uuid, aws_bucket and series_size_MB from series.parquet and check the size before pulling into a pod with a few GB of disk. s5cmd and `pip install idc-index` are the bulk tools.","PatientID in IDC is the TCIA/collection patient id (e.g. MRI-DIR-T1_1). StudyInstanceUID and SeriesInstanceUID are the DICOM UIDs used by every viewer and by the IDC portal (see get_viewer_URL in idc-index).","Radiology series are one .dcm per slice; sort by ImagePositionPatient[2] (fall back to InstanceNumber) before stacking. CT pixel values need RescaleSlope/RescaleIntercept to become Hounsfield units; window for the organ you are looking at (soft tissue about -160 to 240 HU). PET needs SUV scaling from the RadiopharmaceuticalInformationSequence and patient weight.","Derived series (RTSTRUCT) are analysis results (segmentations, structure sets, structured reports, annotations) stored as their own series; they reference the source image series through ReferencedSeriesSequence, and analysis_results.parquet lists which analysis produced them and under what license. They are not in the sample folders.","Licenses are per series (CC BY 4.0: 61); series.parquet license_short_name is authoritative. Cite the DOI of the series you use (series.parquet source_DOI). The collection's own DOI is 10.7937/k9/tcia.2018.3f08iejt. Also cite the IDC (Fedorov et al., Cancer Research 2021, doi:10.1158/0008-5472.CAN-21-0950; Fedorov et al., RadioGraphics 2023, doi:10.1148/rg.230180)."],"columns":[{"name":"collection_id","type":"str"},{"name":"PatientID","type":"str"},{"name":"SeriesInstanceUID","type":"str"},{"name":"StudyInstanceUID","type":"str"},{"name":"source_DOI","type":"str"},{"name":"PatientAge","type":"str"},{"name":"PatientSex","type":"str"},{"name":"StudyDate","type":"str"},{"name":"BodyPartExamined","type":"str"},{"name":"Modality","type":"str"},{"name":"Manufacturer","type":"str"},{"name":"SeriesDescription","type":"str"},{"name":"instanceCount","type":"Int64"},{"name":"license_short_name","type":"str"},{"name":"aws_bucket","type":"str"},{"name":"crdc_series_uuid","type":"str"},{"name":"series_aws_url","type":"str"},{"name":"series_size_MB","type":"float64"}],"format":"v2-hybrid","generatedAt":"2026-11-17T18:36:15.115Z","layout":{"example":"series.parquet row: PatientID MRI-DIR-T1_1, Modality MR, 14 instances, 1.9 MB, s3://idc-open-data/52a5bc02-69e7-4d86-aa79-884b7649c818/*","pattern":"patients.parquet  9 x 7\nsamples.parquet  2 x 13\nseries.parquet  61 x 31\nstudies.parquet  25 x 9\nsample/MR_1.3.6.1.4.1.14519.5.2.1.1706.4996.159386900817642233544085208072/  14 .dcm (1.9 MB, CC BY 4.0)\nsample/RTSTRUCT_1.3.6.1.4.1.14519.5.2.1.1706.4996.117054388159255463530055739230/  1 .dcm (0.0 MB, CC BY 4.0)"},"mountPath":"/mnt/archive","rowCount":"9 phantom subjects, 25 studies, 61 series; 1.4 GB in IDC","sampleObjects":["README.md: IDC description, modality table, licenses, DOIs, how to fetch","series.parquet: the index; one row per series with its S3 location","sample/MR_1.3.6.1.4.1.14519.5.2.1.1706.4996.159386900817642233544085208072/: MR sample (CC BY 4.0)","sample/RTSTRUCT_1.3.6.1.4.1.14519.5.2.1.1706.4996.117054388159255463530055739230/: RTSTRUCT sample (CC BY 4.0)"],"starterCell":"# MRI-DIR: what is in the collection, and one real MR series from the sample folder\nimport os, glob, pandas as pd, numpy as np\nM = os.environ.get('SCIGANTIC_MOUNT_PATH', '/mnt/archive')\nseries = pd.read_parquet(f'{M}/series.parquet')\nprint(series.groupby('Modality').agg(series=('SeriesInstanceUID', 'count'), patients=('PatientID', 'nunique'), GB=('series_size_MB', lambda s: round(s.sum() / 1024, 1))))\nimport pydicom\nfiles = sorted(glob.glob(f'{M}/sample/MR_1.3.6.1.4.1.14519.5.2.1.1706.4996.159386900817642233544085208072/*.dcm'))\nds = pydicom.dcmread(files[0])\nprint(len(files), 'files;', ds.Modality, ds.get('Rows'), 'x', ds.get('Columns'), ds.get('ImageType'))\n","totalObjects":"4 parquet tables plus 15 sample DICOM files (2 MB)"},"summary":"MRI-DIR on the NCI Imaging Data Commons (IDC v25): 9 phantom subjects, 25 studies, 61 DICOM series, 1.4 GB.","title":"IDC MRI-DIR: Head and Neck Squamous Cell Carcinoma MRI, CT (9 phantom subjects)","updatedAt":"2026-11-17T18:37:46.628Z","visibility":"public","websiteUrl":"https://imaging.datacommons.cancer.gov/"}}