ESITMATE详细用法+结果解读

estimate是根据rnaseq表达计算肿瘤纯度和免疫得分的一个生信软件,为了从rnaseq数据中更好的理解分析TME(tumor micro-environment)。文章在2013年发表于nature community上:

Inferring tumour purity and stromal and immune cell admixture from expression data - PMC (nih.gov)

 下面主要介绍用R包计算estimate score和结果分析:

首先需要在Rstudio下载安装包:

library(utils)
rforge <- "http://r-forge.r-project.org"
install.packages("estimate", repos=rforge, dependencies=TRUE 
library(estimate)
in.file <- 'TCGA_LIHC_htseq_counts_gene.txt'       #输入文件
outfile2E <- 'ESTIMATE_input.gct'        #生成ESTIMATE 的输入文件
filterCommonGenes(input.f= in.file, output.f= outfile2E, id="GeneSymbol")

estimateScore("ESTIMATE_input.gct", "ESTIMATE_score.gct")
plotPurity(scores="ESTIMATE_score.gct", samples="TCGA.LN.A810.01A")

ESTIMATE_score <- read.table("ESTIMATE_score.gct", skip = 2,#前两行跳过
                             header = TRUE,row.names = 1)
ESTIMATE_score <- ESTIMATE_score[,2:ncol(ESTIMATE_score)]
ESTIMATE_score <-t(ESTIMATE_score)


write.table(ESTIMATE_score,file = "ESTIMATE_score_lihc1.txt",quote = F,sep = "\t")


plotPurity(scores="ESTIMATE_score.gct", samples="TCGA.DD.A4NG.01A", platform="illumina")

得到文件如下:

分别是你的rna表达的sample,计算得到的肿瘤微环境基质得分,免疫得分,estimate得分和肿瘤纯度得分, 最后两列是对应的,estimate score越大,purity越小。

最后附上基质细胞的详解:参考来源

肿瘤微环境中的基质细胞 - 简书 (jianshu.com)

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值