# Cohorts

{% hint style="info" %}
An Apollo license is required to use Apollo Datasets on the DNAnexus Platform. Org approval may also be required. [Contact DNAnexus Sales](mailto:sales@dnanexus.com) for more information.
{% endhint %}

A cohort object is a [record](/developer/api/introduction-to-data-object-classes/records.md) of type **CohortBrowser** that is used to represent a subset of data from a [database](/developer/api/introduction-to-data-object-classes/databases.md) defined by filters and/or a query. The cohort record is mainly used to store cohorts of samples based on filters set by users in dashboards. The user needs to have access to the database referenced in the record's details to be able to explore data of the cohort.

A cohort includes:

* **Dashboard Layout Configuration** - a set of configurations in place when the cohort was saved.
* **Dataset Link** - a link to the dataset to which the cohort is linked.
* **Filter Object** - a representation of all the cohort filters built.
  * **Cohort SQL** - a raw SQL representation of the cohort filter built.
* **Cohort Base SQL** - any SQL added to the cohort that is applied before additional filters are added in the Cohort Browser.


---

# 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://documentation.dnanexus.com/developer/datasets/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.
