# Classify cell type

Garnett\[1] automated cell type classification method should be invoked from a non-normalized raw count matrix data node. It use the specified classifier to generate cell type annotation on the input data

Select a raw count data node, choose **Classification > Classify cell type** task on the pop-up menu

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-f62a7caf836f85389710ee0cd08023bb47fce447%2Fimage%20(296).png?alt=media" alt=""><figcaption></figcaption></figure>

If using the **Managed classifiers** tool for the first time, you will be asked to create a new classifier file. Users may select either the **Download Garnett classifier** that matches the species and tissue type with their dataset or the **Import Garnett classifier** that is trained previously.

<figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-0fe42648e963e924c1850b84287ecd317a535291%2Fimage%20(297).png?alt=media" alt=""><figcaption></figcaption></figure>

Next, click the **Create** button to create the classifier file. Once the correct classifier file has been created, select **Finish** to start running the task.

If you would like to classify cell type with the classifier obtained from the same analysis, choose **Project classifiers,** and click on ‘**Select data node**’ to choose the classifier in the analysis. Details on how to train a classifier can be found [here](https://help.connected.illumina.com/icm/analyses/analysis-functionality/task-menu/classification/train-classifier). Then click the **Finish** button.

The output data node named **Classify result,** it contains the cell type annotation attributes, "*cell\_type*" is the cell type assignments directly from Garnett model. While "*cluster\_ext\_type*" is the cell type that's determined by expanding cell type assignments to nearby cells using Louvain clustering. Downstream analysis tasks such as normalization and PCA can be performed on the **Classify result** data node.

## References

1. <https://www.nature.com/articles/s41592-019-0535-3>
2. <https://cole-trapnell-lab.github.io/garnett/classifiers/>
3. <https://cole-trapnell-lab.github.io/garnett/docs/#constructing-a-marker-file>
