# Metadata Fields

Metadata fields are used to define the annotation structure for your organization's samples.&#x20;

For each metadata field, you will need to provide:

* *Name (free text)*
* *Type (selector) -* choice of "string", "numeric", "list", "ontology"
* *Index (numeric input)* - the order of this metadata field in tables that display metadata
* *Is patient id (switch) -* whether this metadata field captures the patient/donor/subject identifier
* *Is sample id (switch)* - whether this metadata field captures the sample identifier
* *Visible by default (switch)* - whether this metadata field shold be displayed by default in tables that display metadata

**Name**

Names should be descriptive of the information that the metadata field stores. They will be carried into the bioinformatics analysis as sample/cell observations.

**Type**

* *string* - a free text field that captures information that's usually not repetitive across the entire sample database
* *numeric* - used to capture information such as age, survival days, BMI, etc.
* *list* - used to capture information that has a limited number of values, such as sex, FIGO stage, etc.
* *ontology* - used to capture information that needs to be consistent across the entire database of samples, such as tissue and disease

**Index**

This allows you to control the order of the metadata fields based on importance. Metadata is displayed in sample listings and gene signature listings.&#x20;

**Is patient ID**

This flag informs the platform that the information stored in this field refers to the patient/donor/subject from whom the sample originated. It's especially useful when you upload paired modalities, such as mRNA and sRNA, and you want to keep track of the patient association. The platform does not require a metadata field to represent the patient ID to function correctly.

**Is sample ID**

This flag informs the platform that the information stored in this field refers to the sample ID. This is required to map the metadata to the actual samples that are imported in Panomics. Without a metadata field that references the sample ID, there is no way to upload metadata.

**Visible by default**

This flag informs the platform whether this metadata field should be displayed in sample and gene signature tables by default. This setting can be overridden by each user from the **COLUMNS** toolbar button. This is especially useful if you are storing metadata about sample preparation, assay, etc, which bring limited value to tertiary analysis.

### **Metadata Field Listing View**

<figure><img src="/files/HWfuK1v7EPv7ilayvuuk" alt=""><figcaption><p>Metadata field listing</p></figcaption></figure>

### Create Metadata Field Dialog

To create a metadata field, click on the `CREATE` button in the grid toolbar.

<figure><img src="/files/f8Jinwct7d7uH9V6kmgW" alt=""><figcaption><p>Create metadata field</p></figcaption></figure>

### Edit Metadata Field Dialog

To edit a metadata field, select the field from the grid, then click on the `EDIT` button in the grid toolbar.

{% hint style="info" %}
**Important considerations:**

* Standard metadata fields cannot be edited.
* The name and type can only be changed if the metadata field has never been set for any samples.
* For `list` fields, you can only add new options, you cannot remove existing ones.
  {% endhint %}

<figure><img src="/files/nMa3Oe4w4xwvBvE3okLp" alt=""><figcaption><p>Edit metadata field</p></figcaption></figure>

### Delete Metadata Field

Only non-standard metadata fields that have never been set for any samples can be deleted.


---

# 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.panomics.bio/documentation/administration/metadata-fields.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.
