# Classifying Cells

* [Exploratory Analysis Results](#exploratory-analysis-results)
* [T cells](#t-cells)
* [B cells](#b-cells)

We will now examine the results of our exploratory analysis and use a combination of techniques to classify different subsets of T and B cells in the MALT sample.

## Exploratory Analysis Results

* Double click the merged **UMAP** data node
* Under *Configure* on the left, click **Style,** select the **Graph-based cluster** node, and color by the **Graph-based** attribute (Figure 1)

![Figure 1. Color the cells in the UMAP plot by their graph-based cluster assignment](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-c611f89a662179bdb34b7fde60e68d63cecf642a%2FColor-cells-in-UMAP-plot.png?alt=media)

The 3D UMAP plot opens in a new data viewer session (Figure 2). Each point is a different cell and they are clustered based on how similar their expression profiles are across proteins and genes. Because a graph-based clustering task was performed upstream, a biomarker table is also displayed under the plot. This table lists the proteins and genes that are most highly expressed in each graph-based cluster. The graph-based clustering found 11 clusters, so there are 11 columns in the biomarker table.

* Click and drag the **2D scatter plot** icon from **New plot** onto the canvas (Figure 2)
* Drop the 2D scatter plot to the **right** of the UMAP plot

![Figure 2. Add a 2D scatter plot and place it to the right of the UMAP plot](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-a7d3588317a2773c1141de7623c8ef0c8c855964%2FAdd-2D-scatter-plot-to-UMAP-plot.png?alt=media)

* Click **Merged counts** to use as data for the 2D scatter plot (Figure 3)

![Figure 3. Choose Merged counts data to draw the 2D scatter plot](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-950f7e35a02a012a34d90d713dcdc41ee6066cde%2FChoose-merged-counts-draw-2D-scatter-plot.png?alt=media)

A 2D scatter plot has been added to the right of the UMAP plot. The points in the 2D scatter plot are the same cells as in the UMAP, but they are positioned along the x- and y-axes according to their expression level for two protein markers: CD3\_TotalSeqB and CD4\_TotalSeqB, respectively (Figure 4).

![Figure 4. The canvas now has a 2D scatter plot next to the UMAP](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-8e1185a077f845883dc0e45aeefe474d1eb72bd3%2FScreenshot%202023-09-21%20at%2016.54.29.png?alt=media)

* In **Select & Filter**, click **Criteria** to change the selection mode
* Click the **blue circle** next to the *Add rule* drop-down menu (Figure 5)

![Figure 5. Click the blue circle to change the data source for the rule selector](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-7b1141c9455cd2215ef68361313d2bb8d96667d5%2FScreenshot%202023-09-21%20at%2016.55.53.png?alt=media)

* Click **Merged counts** to change the data source
* Choose **CD3\_TotalSeqB** from the drop-down list (Figure 6)

![Figure 6. Choose the CD3\_TotalSeqB protein marker as a selection rule](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-20b624bbfaaaa3d82ae78a2b7cd7497d95aacb84%2FScreenshot%202023-09-21%20at%2016.56.21.png?alt=media)

* Click and drag the **slider** on the CD3D\_TotalSeqB selection rule to include the CD3 positive cells (Figure 7)

![Figure 7. Use the slider to select cells with positive expression for the CD3 protein marker](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-39175da9f03fc3bcc0c07c633e4a131fcfe6c0c9%2FScreenshot%202023-09-21%20at%2016.57.33.png?alt=media)

As you move the slider up and down, the corresponding points on both plots will dynamically update. The cells with a high expression for the CD3 protein marker (a marker for T cells) are highlighted and the deselected points are dimmed (Figure 8).

![Figure 8. CD3+ cells are selected on both plots](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-4faaccf94e3a0137f1ec3f613f162b7eb5700c88%2FScreenshot%202023-09-21%20at%2016.57.52.png?alt=media)

* Click **Merged counts** in **Get data** on the left under *Setup*
* Click and drag **CD8a\_TotalSeqB** onto the 2D scatter plot (Figure 9)
* Drop CD8\_TotalSeqB onto the **x-axis** configuration option

![Figure 9. Change the feature plotted on the x-axis to CD8\_TotalSeqB](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-2822065f6764d68a762ace2d8fc384d51dec8aec%2FScreenshot%202023-09-21%20at%2016.59.40.png?alt=media)

The CD3 positive cells are still selected, but now you can see how they separate into CD4 and CD8 positive populations (Figure 10).

![Figure 10. 2D scatter plot with CD4\_TotalSeqB and CD8\_TotalSeqB features on the axes](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-bf623b2c6251cf29e4f42ac9d038e91289729570%2FScreenshot%202023-09-21%20at%2017.00.11.png?alt=media)

The simplest way to classifying cell types is to look for the expression of key marker genes or proteins. This approach is more effective with CITE-Seq data than with gene expression data alone as the protein expression data has a better dynamic range and is less sparse. Additionally, many cell types have expected cell surface marker profiles established using other technologies such as flow cytometry or CyTOF. Let's compare the resolution power of the CD4 and CD8A gene expression markers compared to their protein counterparts.

* Click the **duplicate plot** icon above the 2D scatter plot (Figure 11)

![Figure 11. Click the duplicate plot icon to make a copy of the 2D scatter plot](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-b15e5c7e001cf4301f9c5b36480823bbe606f0ce%2FDuplicate_plot.png?alt=media)

* Click **Merged counts** in the **Get Data** icon under *Setup*
* Search for the **CD4** gene
* Click and drag **CD4** onto the duplicated 2D scatter plot
* Drop the CD4 gene onto the **y-axis** option
* Search for the **CD8A** gene
* Click and drag **CD8A** onto the duplicated 2D scatter plot
* Drop the CD8A gene onto the **x-axis** option

The second 2D scatter plot has the CD8A and CD4 mRNA markers on the x- and y-axis, respectively (Figure 12). The protein expression data has a better dynamic range than the gene expression data, making it easier to identify sub-populations.

![Figure 12. The second 2D scatter plot (bottom) has the CD8 and CD4 genes plotted against each other](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-465235d946a7091e28cd27befade75081e17c58c%2FScreenshot%202023-09-21%20at%2017.02.18.png?alt=media)

* On the first 2D scatter plot (with protein markers), click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d271c32bde60f9ee791d83efeb997f1b2f9c88a6%2Flasso-mode-icon.png?alt=media) in the top right corner
* Manually select the cells with high expression of the CD4\_TotalSeqB protein marker (Figure 13)

More than 2000 cells show positive expression for the CD4 cell surface protein.

![Figure 13. Draw a lasso to manually select CD4+ cells, based on protein expression](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-de95ccc2d2c73f68b8257d3a8776b11f7867f2a6%2FScreenshot%202023-09-21%20at%2017.03.56.png?alt=media)

Let's perform the same test on the gene expression data.

* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d4bcbb5f1c9228c592b96c6e8b25624cd8e8ea27%2Fpointer-icon.png?alt=media) in the top right of the plot to switch back to pointer mode
* Click on a blank spot on the plot to clear the selection
* On the second 2D scatter plot (with mRNA markers), click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d271c32bde60f9ee791d83efeb997f1b2f9c88a6%2Flasso-mode-icon.png?alt=media) in the top right corner
* Manually select the cells with high expression of the CD4 gene marker (Figure 14)

![Figure 14. Draw a lasso to manually select CD4+ (mRNA) cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-589f87493c1e4afc215f48908c8ec59f25e0eb15%2FScreenshot%202023-09-21%20at%2017.05.57.png?alt=media)

This time, only 500 cells show positive expression for the CD4 marker gene. This means that the protein data is less sparse (i.e. there fewer zero counts), which further helps to reliably detect sub-populations.

## T cells

Based on the exploratory analysis above, most of the CD3 positive cells are in the group of cells in the right side of the UMAP plot. This is likely to be a group of T cells. We will now examine this group in more detail to identify T cell sub-populations.

* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-016f275f46ce989a8b4b26fbbd32763488970ca3%2Fgrey-x-icon-2.png?alt=media) in the top right corner of both 2D scatter plots, to remove them from the canvas
* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d271c32bde60f9ee791d83efeb997f1b2f9c88a6%2Flasso-mode-icon.png?alt=media) in the top right corner of the 3D UMAP plot
* Draw a lasso around the group of putative T cells (Figure 15)

![Figure 15. Select the group of putative T cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d7da38026b777d4d879b3133709a6e9a5cdde241%2FScreenshot%202023-09-21%20at%2017.08.53.png?alt=media)

* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d67fa2de85e9065d43fc1f0b0ad6fc3db1fceaea%2Fapply-observation-filter-icon.png?alt=media) in the **Select & Filter** tool to include the selected points
* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d4bcbb5f1c9228c592b96c6e8b25624cd8e8ea27%2Fpointer-icon.png?alt=media) in the top right of the plot to switch back to pointer mode
* Click and drag the plot to rotate it around

![Figure 16. Group of putative T-cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-8e497682d2b74bd9fbd663197ce47cec7487342c%2FScreenshot%202023-09-21%20at%2017.11.38.png?alt=media)

This group of putative T cells predominantly consists of cells assigned to graph-based clusters 3, 4, and 6, indicated by the colors. Examining the biomarker table for these clusters can help us infer different types of T cell.

* Add the Biomarkers table using the **Table** option in the **New plot** menu, you can drag and reposition the table using the button in the top left corner of the plot ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-044e4b502055e86132b4c8c7e3b908416cefea34%2FScreenshot%202023-09-19%20at%2011.46.14.png?alt=media).
* Click and drag the bar between the UMAP plot and the biomarker table to resize the biomarker table to see more of it (Figure 17)

If you need to create more space on the canvas, hide the panel words on the left using the arrow ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-bae4fe2c013a73960923287e88a09627421e5810%2Fimage2022-8-29_23-58-45.png?alt=media).

![Figure 17. Resize plots to see more of the biomarker table](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-2e08801edb3f8342a3db5282ca436f44c657c52e%2FScreenshot%202023-09-21%20at%2017.19.20.png?alt=media)

Cluster 6 has several interesting biomarkers. The top biomarker is CXCL13, a gene expressed by follicular B helper T cells (Tfh cells). Another biomarker is the PD-1 protein, which is expressed in Tfh cells. This protein promotes self-tolerance and is a target for immunotherapy drugs. The TIGIT protein is also expressed in cluster 6 and is another immunotherapy drug target that promotes self-tolerance.

Cluster 4 expresses several marker genes associated with cytotoxicity (e.g. NKG7 and GZMA) and both CD3 and CD8 proteins. Thus, these are likely to be cytotoxic cells.

We can visually confirm these expression patterns and assess the specificity of these markers by coloring the cells on the UMAP plot based on their expression of these markers.

* Click the **duplicate plot** icon above the UMAP plot

We will color the cells on the duplicate by their expression of marker genes, while keeping the original plot colored by graph-based cluster assignment.

* Click and drag the **CXCL13** gene from the biomarker table onto the duplicate UMAP plot
* Drop the CXCL13 gene onto the **Green (feature)** option (Figure 18)

![Figure 18. Click and drag the gene from the biomarker table onto the plot](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-482f808a3942dd388cc5b639771a30136e21d0f2%2FScreenshot%202023-09-21%20at%2017.21.51.png?alt=media)

* Click and drag the **NKG7** gene from the biomarker table onto the duplicate UMAP plot
* Drop the NKG7 gene onto the **Red (feature)** option

The cells with higher CXCL13 and NKG7 expression are now colored green and red, respectively. By looking at the two UMAP plots side by side, you can see these two marker genes are localized in graph-based clusters 6 and 4, respectively (Figure 19).

![Figure 19. The cells in the UMAP plot on the right are colored by their expression of CXCL13 (green) and NKG7 (red) marker genes. These cells belong to graph-based clusters 6 and 4, respectively, shown in the plot on the left](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-a76c5afc12901a9f4ffd053ac045f6a75d8d241f%2FScreenshot%202023-09-21%20at%2017.23.11.png?alt=media)

* In **Select & Filter**, click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-a46aef5fffef11b8e671892f60a6033130d0b4a6%2Fred-remove-icon.png?alt=media) to remove the CD3\_TotalSeqB filtering rule
* Click the **blue circle** next to the *Add criteria* drop-down list
* Search for **Graph** to search for a data source
* Select **Graph-based clustering** (derived from the Merged counts > PCA data nodes)
* Click the **Add criteria** drop-down list and choose **Graph-based** to add a selection rule (Figure 20)

![Figure 20. Change the data source to Graph-based clustering and choose Graph-based from the drop-down list](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-bd53f60499789224703bce91683df36352cd42c1%2FScreenshot%202023-09-21%20at%2017.25.58.png?alt=media)

* In the *Graph-based* filtering rule, click **All** to deselect all cells
* Click cluster **6** to select all cells in cluster 6
* Using the **Classify** tool, click **Classify selection**
* Label the cells as **Tfh** **cells** (Figure 21)
* Click **Save**

![Figure 21. Select all cluster 6 cells and classify them as Tfh cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-1b1e9d34763d30e6a842eb6de8addf932c582ad3%2FScreenshot%202023-09-21%20at%2017.25.45.png?alt=media)

* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-c5a9fa293d78544e2b3d0eb0c3af32fb625f13ce%2Fexclude-selected-cells-icon.png?alt=media) in **Select & Filter** to exclude the cluster 6/Tfh cells
* Click cluster **4** to select all cells in cluster 4
* In the **Classify** icon, click **Classify selection**
* Label the cells as **Cytotoxic cells**
* Click **Save**
* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-c5a9fa293d78544e2b3d0eb0c3af32fb625f13ce%2Fexclude-selected-cells-icon.png?alt=media) in **Select & Filter** to exclude the cluster 4/Cytotoxic cells

We can classify the remaining cells as helper T cells, as they predominantly express the CD4 protein marker.

* Click on the **invert selection** icon in either of the UMAP plots (Figure 22)

![Figure 22. Invert the selection to select all remaining cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-b1d4097aeb50aa0d77724a25f3cb18e80badf1cc%2Finvert_selection.png?alt=media)

* In **Classify**, click **Classify selection**
* Label the cells as **Helper T cells**
* Click **Save**

Let's look at our progress so far, before we classify subsets of B-cells.

* Click the **Clear filters** link in **Select & Filter**
* Select the duplicate UMAP plot (with the cell colored by marker genes)
* Under *Configure* on the left, open **Style** and color the cells by **New classifications** (Figure 23)

![Figure 23. Color by New classifications (T cell subsets)](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-7c3ff81ae15d6f8935f1307e5746ec81f6a5acf6%2FScreenshot%202023-09-21%20at%2017.29.16.png?alt=media)

## B cells

In addition to T-cells, we would expect to see B lymphocytes, at least some of which are malignant, in a MALT tumor sample. We can color the plot by expression of a B cell marker to locate these cells on the UMAP plot.

* In the **Get data** icon on the left, click **Merged counts**
* Scroll down or use the search bar to find the **CD19\_TotalSeqB** protein marker
* Click and drag the **CD19\_TotalSeqB** marker over to the UMAP plot on the right
* Drop the CD19\_TotalSeqB marker over the **Color** configuration option on the plot

The cells in the UMAP plot are now colored from grey to blue according to their expression level for the CD19 protein marker (Figure 24). The CD19 positive cells correspond to several graph-based clusters. We can filter to these cells to examine them more closely,

![Figure 24. Cells in UMAP plot colored by their expression of CD19 protein](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-2057df5f93cc8e456a59067f864f0632dcf106ec%2FScreenshot%202023-09-21%20at%2017.32.18.png?alt=media)

* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d271c32bde60f9ee791d83efeb997f1b2f9c88a6%2Flasso-mode-icon.png?alt=media) in the top right corner of the UMAP plot
* Lasso around the CD19 positive cells (Figure 25)
* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d67fa2de85e9065d43fc1f0b0ad6fc3db1fceaea%2Fapply-observation-filter-icon.png?alt=media) in **Select & Filter** to include the selected points

![Figure 25. Lasso around CD19 positive cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-81ffa5a888c3ed57352bcd1d3cf86438676a261d%2FScreenshot%202023-09-21%20at%2017.33.32.png?alt=media)

The plots will rescale to include the selected points. The CD19 positive cells include cells from graph-based clusters 1, 2 and 7 (Figure 26).

![Figure 26. Filtered CD19 positive cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-835590e07e799771af75d935ea1e633baf5d669c%2FScreenshot%202023-09-21%20at%2017.34.34.png?alt=media)

* Find the **CD3\_TotalSeqB** protein marker in the biomarker table
* Click and drag the **CD3\_TotalSeqB** onto the UMAP plot on the right
* Drop the CD3\_TotalSeqB protein marker onto the **Color** configuration option on the plot (Figure 27)

While these cells express T cell markers, they also group closely with other putative B cells and express B cell markers (CD19). Therefore, these cells are likely to be doublets.

![Figure 27. Some cells within the CD19 positive clusters show signs of expressing T-cells markers](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-7fda9503c7ef7d170c41fe53557b97292dc69c89%2FScreenshot%202023-09-21%20at%2017.36.39.png?alt=media)

* Select either of the UMAP plots
* Click on the **Select & Filter**
* Find the **CD3\_TotalSeqB** protein marker in the biomarker table
* Click and drag **CD3\_TotalSeqB** onto the **Add criteria** drop-down list in **Select & Filter** (Figure 28)
* Set the minimum threshold to **3** in the CD3\_TotalSeqB selection (Figure 29)
* Click the **Classify** icon then click **Classify selection**
* Label the cells as **Doublets**
* Click **Save**
* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-c5a9fa293d78544e2b3d0eb0c3af32fb625f13ce%2Fexclude-selected-cells-icon.png?alt=media) in **Select & Filter** to exclude the selected points

![Figure 28. Click and drag the CD3 protein marker directly onto the Add criteria drop-down list to create a selection criteria](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-4375a58cbc08bc18a923c8ef96f1083f5333f5bf%2FScreenshot%202023-09-21%20at%2017.37.39.png?alt=media)

![Figure 29. Select the remaining CD3 positive doublet cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-cd8dec3da3224c4458106bb1fe9742320bc6bdf0%2FScreenshot%202023-09-21%20at%2017.40.23.png?alt=media)

The biomarkers for clusters 1 and 2 also show an interesting pattern. Cluster 1 lists IGHD as its top biomarker, while cluster 2 lists IGHA1 as the fourth most significant. Both IGHD (Immunoglobulin Heavy Constant Delta) and IGHA1 (Immunoglobulin Heavy Constant Alpha 1) encode classes of the immunoglobulin heavy chain constant region. IGHD is part of IgD, which is expressed by mature B cells, and IGHA1 is part of IgA1, which is expressed by activated B cells. We can color the plot by both of these genes to visualize their expression.

* Click, drag and drop **IGHD** from the biomarker table onto the **Green (feature)** configuration option on the UMAP plot on the right
* Click, drag and drop **IGHA1** from the biomarker table onto the **Red (feature)** configuration option on the UMAP plot on the right (Figure 30)

![Figure 30. The B cells colored by IGHD (green) and IGHA1 (red) gene expression](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-eaa826d2ca3944d669eb333b27c53fdc78d0eb60%2FScreenshot%202023-09-21%20at%2017.43.18.png?alt=media)

We can use the lasso tool to select and classify these populations.

* Click ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-d271c32bde60f9ee791d83efeb997f1b2f9c88a6%2Flasso-mode-icon.png?alt=media) in the top right corner of the UMAP plot
* Lasso around the IGHD positive cells (Figure 31)
* In the **Classify** icon on the left, click **Classify selection**
* Label the cells as **Mature B cells**
* Click **Save**

![Figure 31. Lasso around the IGHD positive cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-773248d98e763db1422ef8753a79c602b63aba7e%2FScreenshot%202023-09-21%20at%2017.49.08.png?alt=media)

* Lasso around the IGHA1 positive cells (Figure 32)
* In the **Classify** icon on the left, click **Classify selection**
* Label the cells as **Activated B cells**
* Click **Save**

![Figure 32. Select IGHA1 positive cells](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-c6a1634f40cb264e75b018311c59f5ced1458692%2FScreenshot%202023-09-21%20at%2017.47.03.png?alt=media)

We can now visualize our classifications.

* Click the **Clear filters** link in the **Select & Filter** icon on the left
* Select the duplicate UMAP plot (with the cell colored by marker genes)
* Under *Configure* on the left, click the **Style** icon and color the cells by **New classifications** (Figure 33)

![Figure 33. UMAP with cells colored by cell types](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-1557375ab8d02d24e4cc37982835486282c046f2%2FScreenshot%202023-09-21%20at%2017.52.05.png?alt=media)

* Click **Apply classifications** in the **Classify** icon
* Name the attribute **Cell type**
* Click **Run**
* Click **OK** to close the message about a classification task being enqueued

Optionally, you may wish to save this data viewer session if you need to go back and reclassify cells later. To save the session, click the ![](https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-88c4433453a636ab7ca3e0db4c525d48d9e4ad53%2Fsave_disk_icon_gray.png?alt=media) icon on the left and name the session.

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