Change orig.ident column in seurat meta.data to match cell barcode sample prefixes
0
0
Entering edit mode
8 months ago
bgbs • 0

Hi everyone,

Do you know how I can change the orig.ident column of the seurat meta.data so that it can differentiate between the 4_D_MI2_S2 and the 4_MI1_S5 sample? Right now it's labeling both samples as 4

Sample name (orig.ident column in seurat object meta.data) 1_MI1_S3 (1) 2_MI1_S4 (2) 3_C_MI2_S1 (3) 4_D_MI2_S2 (4) 4_MI1_S5 (4) *seurat is labeling these different samples as 4 5_MI1_S6 (5) 7_MI1_S7 (7)

I made a UMAP grouped by orig.ident and it's supposed to be colored by 7 samples, not 6. Basically I would like the UMAP legend and the orig.ident column to have something like the following to match the cell barcode sample prefixes. 1 2 3C 4D 4 5 7

How can I do this? Or is this necessary as the cell barcode prefixes are already labeled by sample?

DimPlot(seurat.obj_combined_filtered, reduction = "umap", group.by = "orig.ident", label = TRUE)

enter image description here

seurat • 309 views
ADD COMMENT

Login before adding your answer.

Traffic: 1645 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6