> For the complete documentation index, see [llms.txt](https://documentation.panomics.bio/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.panomics.bio/documentation/analyses/analysis-workbench/sample-cell-explorer/umap.md).

# UMAP

The UMAP command in Panomics performs multiple processing steps. A [`Standard Compute`](/documentation/compute-runtimes/codeless-compute.md) runtime is required.

{% stepper %}
{% step %}

### Runs batch effect correction algorithm (optional)

| Algorithm     | Microarray           | Bulk RNA-seq w/ normalized counts | Bulk RNA-seq w/ raw counts | Single Cell RNA-seq  |
| ------------- | -------------------- | --------------------------------- | -------------------------- | -------------------- |
| Limma         | :white\_check\_mark: | :white\_check\_mark:              | :x:                        | :x:                  |
| Combat        | :white\_check\_mark: | :white\_check\_mark:              | :x:                        | :x:                  |
| CombatSeq     | :x:                  | :x:                               | :white\_check\_mark:       |                      |
| Harmony \*    | :x:                  | :x:                               | :x:                        | :white\_check\_mark: |
| scVI          | :x:                  | :x:                               | :x:                        | :white\_check\_mark: |
| {% endstep %} |                      |                                   |                            |                      |

{% step %}

### Runs PCA

{% endstep %}

{% step %}

### Computes neighborhood graph

Uses 15 neighbors and the PCA representation based on batch effect correction algorithm choice.
{% endstep %}

{% step %}

### Computes UMAP

{% endstep %}
{% endstepper %}

{% hint style="info" %}
\* The Harmony batch effect correction algorithm operates on the PCA space, so PCA is computed first and then replaced by the harmonized PCA.
{% endhint %}

In the following example, we perform normalization, then UMAP with no batch correction. Coloring the embedding by the diagnosis and sample name observations reveals strong batch effects. We then run UMAP again with Harmony batch effect correction.&#x20;

{% embed url="<https://www.loom.com/share/2d46b541ec444b708abdb40e5db65d0b?sid=032ee2b6-2775-4dba-bc67-cd0073d3d6e3>" %}
Normalize & UMAP
{% endembed %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://documentation.panomics.bio/documentation/analyses/analysis-workbench/sample-cell-explorer/umap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
