library(clusterProfiler)
library(org.Mm.eg.db)
gene.df <- bitr(rownames(expr.celltype), fromType = "SYMBOL", #fromType是指你的数据ID类型是属于哪一类的
toType = c("ENTREZID"), #toType是指你要转换成哪种ID类型,可以写多种,也可以只写一种
OrgDb = org.Mm.eg.db)#Orgdb是指对应的注释包是哪个
image.png