# Data selection and download

IDC Portal offers lots of flexibility in selecting items to download. In all cases, download of data from IDC  Portal is a two step process:

1. Select items and export a manifest corresponding to your selection.&#x20;
2. Use command-line python tool or 3D Slicer IDC browser extension to download the files for your selection, as discussed in [Downloading data](https://learn.canceridc.dev/data/downloading-data) .

{% hint style="success" %}
"IDC manifest" is a text file that contains URLs to the files in cloud buckets that correspond to your selection. It will contain one line for each DICOM series, as IDC files are organized in series-level folders in the cloud storage.
{% endhint %}

## Downloading content using Cart

You will see "Cart" icon in the search results collections/cases/studies/series tables. Any of the items in these tables can be added to the cart for subsequent downloading of the corresponding files.&#x20;

Get the manifest for the cart content using "Manifest" button in the Cart panel.

<figure><img src="https://github.com/ImagingDataCommons/IDC-Docs/releases/download/v20/cart.gif" alt=""><figcaption></figcaption></figure>

## Downloading all of the files for the current search configuration

Clicking "Manifest" button in the "Cohort Filters" panel will given you the manifest for all of the studies that match your current selection criteria.&#x20;

<figure><img src="https://1103581492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCTG4fXybYgGMalZnmf-2668963341%2Fuploads%2FYDbxarWn12GPmufdpnMt%2Fimage.png?alt=media&#x26;token=190c69de-2e2e-4ab2-b66c-17489731e99a" alt=""><figcaption></figcaption></figure>

## Download individual studies or series

Studies table contains a button for downloading manifest that will contain references to the files in the given study. To download a single series, no manifest is needed. You will see the command line to run to do the download.

<figure><img src="https://1103581492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCTG4fXybYgGMalZnmf-2668963341%2Fuploads%2FSdAegMrVY6f5tRzCDoj5%2Fimage.png?alt=media&#x26;token=0a2ff0d2-8bcb-4db8-843a-0502b078d370" alt=""><figcaption></figcaption></figure>

## Downloading images in the viewers

If you would like to download the entire study, or the specific image you see in the image viewer, you can use the download button in the viewer interface.&#x20;

<figure><img src="https://1103581492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCTG4fXybYgGMalZnmf-2668963341%2Fuploads%2FGy274anBcWoOwHewlxIo%2Fimage.png?alt=media&#x26;token=a84aafc9-f8f0-4aca-bf06-07df17734c9b" alt=""><figcaption><p>Button to toggle download instructions in IDC radiology (OHIF v3) viewer</p></figcaption></figure>

<figure><img src="https://1103581492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCTG4fXybYgGMalZnmf-2668963341%2Fuploads%2FZCeVD17yLgHjuYayFh9u%2Fimage.png?alt=media&#x26;token=2fb5b832-19fb-4277-9720-35519bf93c13" alt=""><figcaption><p>Button to toggle download instructions in IDC microscopy (Slim) viewer</p></figcaption></figure>


---

# 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://learn.canceridc.dev/portal/data-exploration-and-cohorts/understanding-cohorts.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.
