Home > Community > How to add cluster name to metadata in Seurat?
Upvote

24

Downvote
+ Bioinformatics
+ Annotation
+ Rna-seq
Posted by
Khanu9125

How to add cluster name to metadata in Seurat?

Anderson Dourado  Follow

To add the column status can try the following:

B@meta.data$status <- status[row.names(B@meta.data),]$status

To rename the clusters you can try the following:

B@meta.data$seurat_clusters <- B@meta.data$status

However, I think the plotting functions in Seurat do not use the cluster information from B@meta.data, rather they use information from B@active.idents.So, I guess you have to do the following instead:

B@active.idents <-  B@meta.data$status

This should work, but, I will verify and update this answer later.

More

Upvote

VOTE

Downvote
John Mccullough  Follow
B@active.identsMore
Upvote

VOTE

Downvote
Gareth Adamson  Follow
worked for renaming the clusters!More
Upvote

VOTE

Downvote
Gunter Gutsche  Follow
Thank you! It worked! More
Upvote

VOTE

Downvote