> ## 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.

# Sample Tags

> Tags provide a flexible alternative to metadata fields or folder-based organization .

## Accessing the Tags Feature

To access the tags functionality, navigate to the **Samples Menu** from your Cosmos-Hub dashboard. This menu serves as the central hub for managing sample organization and provides multiple capabilities including filtering your dashboard view, adding tags, managing metadata fields, and generating comparative analyses .

<iframe src="https://www.youtube.com/embed/rWfF4-i9rPg" title="YouTube video player" frameborder="0" className="w-full aspect-video rounded-xl" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

## Adding Custom Tags

Custom tags can be added to individual samples or groups of samples directly from the **Samples** menu. Different cohorts within a project can be defined by assigning unique custom tags to samples belonging to each cohort.

## Filtering with Tags

Once tags have been applied to your samples, you can use them to filter your dashboard view. This filtering capability allows you to quickly focus on specific subsets of samples without having to manually search through your entire dataset.

## Creating Comparative Analyses with Tags

One of the primary applications of tags is in creating comparative analyses. After adding custom tags to your samples, you can use those tags to automatically define cohorts when setting up a new comparative analysis. This eliminates the need to manually select individual samples for each cohort, significantly streamlining the analysis setup process.

<Note>
  After launching the Create CA menu, click "Reset Cohorts" to populate options for the tags section.
</Note>

When creating a comparative analysis using custom tags, the system allows you to define cohorts based on the tags you’ve previously assigned. For example, if you’ve tagged samples with “Treatment\_A” and “Treatment\_B,” you can use these tags to automatically split your samples into two cohorts for comparison.
