> For the complete documentation index, see [llms.txt](https://help.partek.illumina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.partek.illumina.com/partek-flow/user-manual/task-menu/pre-analysis-tools/spot-clean.md).

# Spot clean

The terminology spot swapping describes the artifact for spatial data that mRNA bleed from nearby spots causes substantial contamination of UMI counts\[1]. Spot clean in Flow is a task that aims to improve estimates of expression by correcting for spot swapping.

The task can only be invoked from the Space Ranger task output data node since it takes the raw count matrix as input. To run the Spot clean task in Flow:

* Click the Single cell counts outputted from Space Ranger (Figure 1)
* Click **Pre-analysis** tools in the toolbox
* Click **Spot clean**
* Click **Finish** to run the task with default settings

<figure><img src="/files/OL3eQNaeR5i8MHKha706" alt=""><figcaption><p>Figure 1. Invoke Spot clean in Partek Flow.</p></figcaption></figure>

Another single cell counts node will be generated. The data node contains a matrix of cell counts with the decontaminated gene expressions (Figure 2). Downstream analysis tasks, such as normalization, PCA, and ANOVA, can be performed on the new single cell counts node.

<figure><img src="/files/VwrhhQvNkEtww150KFea" alt="" width="563"><figcaption><p>Figure 2. Spot clean task output in Flow.</p></figcaption></figure>

Parameters in this task that you can adjust include:

**Gene cutoff**: Filter out genes with average expressions among tissue spots below or equal to this cutoff. Default: 0.1.

**Max iteration**: Maximum iteration for EM parameter updates. Default: 10. Set a smaller number to save computation time.

## References

1. Ni, Z., Prasad, A., Chen, S. et al. SpotClean adjusts for spot swapping in spatial transcriptomics data. Nat Commun 13, 2971 (2022). <https://doi.org/10.1038/s41467-022-30587-y>

## Additional Assistance

If you need additional assistance, please visit [our support page](http://www.partek.com/support) to submit a help ticket or find phone numbers for regional support.


---

# 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://help.partek.illumina.com/partek-flow/user-manual/task-menu/pre-analysis-tools/spot-clean.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.
