Cohort manifests
The cohort manifest identifies the sources of data in your cohort and allows you to store the content of the cohort outside of the portal, and download the files corresponding to the cohort.
To export a cohort manifest, Create a cohort or click Cohorts on the top menu bar and select a cohort you previously created. Click the Export Cohort Manifest button: the Export Cohort Manifest dialog box appears. There are three options for exporting the cohort manifest, which serve different needs:
s5cmd
manifest: this option is recommended if you want to download the files included in the cohort. You can choose the source of data while downloading the files between Google GCP and Amazon AWS buckets, depending on your needs (in either case, data egress is free).CSV/TSV/JSON: use this option if you want to archive the manifest of your cohort. The information contained in this manifest will be sufficient to access the content cohort even after the IDC data is updated.
BigQuery: this option is most appropriate if you want to further refine your cohort using SQL interface.
s5cmd cohort manifest
s5cmd
manifest lists the commands needed to copy the files corresponding to the cohort using s5cmd run
command from either GCP or AWS buckets (based on user preference). The header of the manifest includes the instructions to download the content of the cohort.
Note that if you chose to download the cohort content from AWS buckets, the manifest header will contain AWS-specific instructions, and the source bucket location will be in AWS, as shown below. You can see that folder names, defined by crdc_series_uuid
, are the same as in the GCP manifest, but the bucket is different.
CSV/TSV/JSON cohort manifest
Comma-Separated Values (CSV) and Tab-Separated Values (TSV) files include header fields, so you can customize which of those fields you want to include in the export. You can also select which columns to include in the file.
The header of the CSV/TSV manifest contains the name of cohort, user, filters used, the date generated, and the total number of records. Data is separated by multiple files until the limit of 65,000 files is reached. If your data set is larger than this, you must export it using BigQuery.
Manifests exported as files are defined at the series level. There will be a single row for each DICOM series included in the manifest. This is due to the limitation on the maximum size of the file that can be exported. To download the individual DICOM files corresponding to the instances included in the series the CRDC UUID corresponding to the series object (series_uuid
) will need to be resolved to the URL of the underlying objects.
Manifests exported into BigQuery are defined at the level of DICOM instances, with one row per instance.
The fields provided in a cohort manifest are:
PatientID
: value of the corresponding DICOM attributecollection_id
: abbreviated identifier of the source data collectionStudyInstanceUID
: value of the corresponding DICOM attributeSeriesInstanceUID
: value of the corresponding DICOM attributeSOPInstanceUID
: value of the corresponding DICOM attribute (NB: included only when manifest is exported into BigQuery!)source_DOI
: Digital Object Identifier (DOI) of the source data collection. Pre-pendingsource_DOI
withhttps://doi.org/
will give you the URL of the collection datasetstudy_uuid
: CRDC UUID of the object maintained by CRDC IndexD corresponding to the DICOM study, which can be resolved to the URL of the underlying objectsseries_uuid
: CRDC UUID of the object maintained by CRDC IndexD corresponding to the DICOM series, which can be resolved to the URL of the underlying objectsinstance_uuid
: CRDC UUID of the object maintained by CRDC IndexD corresponding to the DICOM instance, which can be resolved to the URL of the underlying objects (NB: included only when the manifest is exported into BigQuery!)gcs_url
:gs://
URL that can be used to access the object using the GCPgsutil
tool
An example of how you can use an IDC cohort manifest to retrieve the manifest-defined cohort files is shown in colab notebooks.
A multipart file export can have a maximum of ten files with 65,000 rows each. If your export is larger than this, you must export the manifest via BigQuery.
JSON files do not include any header information but like CSV and TSV files, require that you identify which columns to include in your export. You can import the JSON file to a BigQuery table for further analysis.
BigQuery cohort manifest
You must have a Google account to use BigQuery.
Exporting a manifest to BigQuery allows you to run complex, analytical, SQL-based queries on large sets of data by combining metadata available in IDC BigQuery tables with the content of your manifest. After you start the export, the following window appears on the cohort details page, showing your unique link.
The exported cohort manifest table is intended for short-term use, and will be deleted after seven days. However, you can always re-export the cohort manifest.
Last updated