Hello everyone, I hope you guys could help me with this questions. I find some sub clusters for my fibroblast cluster, and I try to give those subcluster a name. But I do not know where I got wrong, and I really hope you guys could help me out. My code and my error messages are:
names(new.fibroblastsubcluster.ids) <- levels(subset_data) Error in names(new.fibroblastsubcluster.ids) <- levels(subset_data) : 'names' attribute [8] must be the same length as the vector [7] subfibro.ids<-c('Fa', 'Fb', 'Fc', 'Fd', 'Fe', 'Fg', 'Fh')
names(subfibro.ids) <- levels(subset_data) Error in names(subfibro.ids) <- levels(subset_data) : 'names' attribute [8] must be the same length as the vector [7] data <- RenameIdents(subset_data, subfibro.ids) Error in RenameIdents.Seurat(subset_data, subfibro.ids) : All arguments must be named with the old identity class