> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cosmosid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Importing data into a study

> Once a Study has been created, it's necessary to import data into it. This page describes the main routes to import data into studies.

## Before you start

* [Create](/DAP_docs/studies#create-a-new-study) or [join](/DAP_docs/studies#access-a-study) a study already created in a workspace

## How to import data into a Study

Inside the Study Dashboard, click on '**+ Import Data**' to open the Import Dialog

<Frame>
  <img src="https://mintcdn.com/cmbio/IvW3mcdgB0VWEfpX/images/import_data_open_dialog.jpg?fit=max&auto=format&n=IvW3mcdgB0VWEfpX&q=85&s=e9e277c9ded5e914050c7d93adf7dc7b" alt="Import Data Open Dialog" width="3794" height="778" data-path="images/import_data_open_dialog.jpg" />
</Frame>

<img src="https://mintcdn.com/cmbio/9IPlECfVJPWdo6z4/images/ImportDialog.jpg?fit=max&auto=format&n=9IPlECfVJPWdo6z4&q=85&s=2936e9b97bcc7b17972569bbd4cd1c0d" alt="Import Dialog" width="2036" height="860" data-path="images/ImportDialog.jpg" />

### Import from Hub

<Note>
  Any metadata associated with your samples on Cosmos-Hub Pipelines is imported along with the data tables.
</Note>

<img src="https://mintcdn.com/cmbio/9IPlECfVJPWdo6z4/images/Import_from_Hub.jpg?fit=max&auto=format&n=9IPlECfVJPWdo6z4&q=85&s=c9628f34afd9f0bf4e57b3e00dfb3dfe" alt="Import From Hub" width="1708" height="952" data-path="images/Import_from_Hub.jpg" />

<Tabs>
  <Tab title="Hub Folder Path">
    <AccordionGroup>
      <Accordion title="Importing samples from a project folder located in Cosmos-Hub Pipelines" defaultOpen>
        Select which project folder(s) you want to import the profiles from and click on 'Compare Samples' to start importing

        <img src="https://mintcdn.com/cmbio/IvW3mcdgB0VWEfpX/images/hub_search_by_metadata.jpg?fit=max&auto=format&n=IvW3mcdgB0VWEfpX&q=85&s=95c56742506c0f7cae4ef70e6144c50b" alt="Hub Search By Metadata" width="2006" height="1730" data-path="images/hub_search_by_metadata.jpg" />
      </Accordion>
    </AccordionGroup>
  </Tab>

  <Tab title="Hub Comparative Analysis (CA)">
    <AccordionGroup>
      <Accordion title="Importing samples from a cohort associated to a CA from Cosmos-Hub Pipelines" defaultOpen>
        If you have a Comparative Analysis (CA) that was created on Cosmos-Hub Pipelines, you can import its data into a study.

        Choosing a CA imports the source data table along with its associated metadata, the cohort definitions from your original query, and all the workflows associated with that CA.

        <img src="https://mintcdn.com/cmbio/IvW3mcdgB0VWEfpX/images/import_comparative-1.jpg?fit=max&auto=format&n=IvW3mcdgB0VWEfpX&q=85&s=392ac8f3dfa66ae9d481e53a87942299" alt="Import Comparative 1" width="2012" height="1636" data-path="images/import_comparative-1.jpg" />

        1. Select comparative analyses you wish to import the profiles of the underlying cohort
        2. Click on 'Import' to start the import.
      </Accordion>
    </AccordionGroup>
  </Tab>
</Tabs>

### Use Existing Workspace Data

Choose this option if the data you need is already available in the workspace.

Selecting **Use Existing Workspace Data** allows to select  the [AI Query Builder](DAP_docs/query-builder) where you choose a data table and filter it down to the samples your analysis needs.

<Note>
  If you create a study in a workspace that has no data yet, you'll be prompted to import some first — see [Import from Hub](#import-from-hub).
</Note>

## Coming soon

Two more routes for importing data into a study or workspace are under development:

* **Import Custom Data**: create cohorts and run analyses on Data Tables generated outside of the Cosmos-Hub platform..
* **Import from Other Workspaces**: move data from one workspace to another and put it straight to work in a new study, without importing it again.

## Next steps

<CardGroup cols={2}>
  <Card title="AI Query Builder" icon="microchip-ai" href="/query-builder">
    Shape your imported data into the exact dataset for an analysis.
  </Card>

  <Card title="Working with Analysis Modules" icon="pencil-line" href="/create-an-analysis">
    Run analysis modules on the dataset you build.
  </Card>
</CardGroup>
