library(RColorBrewer) library(ggplot2) library(Seurat) markers<-c("PDGFRB","DCN","LUM","DKK1","ESR1","PGR","NCAM1","ITGA1","FCGR3A","CD3E","TRAC","CD8A","ACTA2","RGS5","TAGLN","ADGRL4","DIPK2B","CD34","KDR","GP1BA","CD14","PROM1","MCAM","CD36","VCAM1","VWF","DEFB1","GPX3","FOXJ1","SNTN","CD14","CD68","CD4","CD163","CD19","IGKC","JCHAIN","CD1C","THBD","CLEC9A","CBR3") endo<-readRDS("all_20_samples_after_cluster_0.09.rds")
new.cluster.ids <- c("Stroma Cell", "NK and T Cell", "Luminal Epithelial Cell", "Macrophages and Dendritic", "Progenitor Cell", "Endothelial Cell", "Smooth Muscle Cell", "Ciliated Epithelial Cell") names(new.cluster.ids) <- levels(endo) endo <- RenameIdents(endo, new.cluster.ids) all_cell<-Idents(endo) need<-as.character(all_cell) names(need)<-names(all_cell)
|