Coloring cluster by cell type and parient id
Hello, I have been using Seurat for melanoma analysis. There are two tables I am using:
- An expression matrix where each row is a gene and each column is a cell
- A "cell_cluster_assignment" file where the cluster/cell type is given (for example: cell Cy72.... has cluster B, meaning it is a B cell)
Using the expression matrix, I can create a UMAP colored by principal components, but is there any way to color the UMAP using the "cell_cluster_assignment"?
• 1,689 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hi,
If I understood well, yes, it is possible you just need to provide an extra metadata column with the cluster information to Seurat. Assuming that the file
cell_cluster_assignmentcontains a match between cell ids and cluster type, you can map the cluster type to Seurat metadata based on cell ids (the rownames of Seurat metadata table).If you need more help, you need to provide a sample of your data and a code example. Otherwise it's difficult to help you.
António