美文网首页单细胞测序单细胞测序
04.寻找所有亚群的差异基因并输出

04.寻找所有亚群的差异基因并输出

作者: 科研小徐 | 来源:发表于2022-03-16 00:02 被阅读0次

    为方便注释时查看,及文章发表时上传补充材料。对所有亚群的marker基因进行文件输出

    rm(list = ls())
    library(Seurat)
    library(dplyr)
    load(file = 'pbmc-noann.rdata')
    pbmc=sce
    pbmc.markers <- FindAllMarkers(pbmc, only.pos = TRUE, min.pct = 0.25, logfc.threshold = 0.25)
    pbmc.markers %>%
      group_by(cluster) %>%
      slice_max(n = 2, order_by = avg_log2FC)
    write.table(pbmc.markers,file="all_markers.txt",quote=F,sep="\t",row.names=F,col.names=T)
    
    
    image

    参考来源:
    生信技能树单细胞公开课

    鸣谢:
    I thank Dr.Jianming Zeng(University of Macau), and all the members of his bioinformatics team, biotrainee, for generously sharing their experience and codes.

    问题交流:
    Email: xuran@hrbmu.edu.cn

    相关文章

      网友评论

        本文标题:04.寻找所有亚群的差异基因并输出

        本文链接:https://www.haomeiwen.com/subject/csvydrtx.html