estimate 计算肿瘤纯度

作者: 一路向前_莫问前程_前程似锦 | 来源:发表于2019-01-21 15:04 被阅读21次
library(utils)
rforge <- "http://r-forge.r-project.org"
install.packages("estimate", repos=rforge, dependencies=TRUE)
library(estimate)

OvarianCancerExpr <- system.file("extdata", "sample_input.txt",
                                 package="estimate")
read.table(OvarianCancerExpr)[1:4,1:4]

filterCommonGenes(input.f=OvarianCancerExpr, 
                  output.f="OV_10412genes.gct", 
                  id="GeneSymbol")

estimateScore(input.ds = "OV_10412genes.gct",
              output.ds="OV_estimate_score.gct", 
              platform="affymetrix")

plotPurity(scores="OV_estimate_score.gct", samples="s516", 
           platform="affymetrix")

scores=read.table("OV_estimate_score.gct",skip = 2,header = T)
rownames(scores)=scores[,1]
scores=t(scores[,3:ncol(scores)])
scores

相关文章

网友评论

    本文标题:estimate 计算肿瘤纯度

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