# #设置,包括= FALSE ------------------------------------------------ 库(knitr) opts_chunk美元集(out.extra = '风格= "显示:块;保证金:汽车“fig.align = "中心 ") ## ---- 种子,包括= FALSE ------------------------------------------------- set.seed(1887) # #——自由,警告= FALSE,消息= FALSE,结果= "隐藏 "------------------- 库(Biobase)库(BioQC) gmtFile < -执行(“extdata / exp.tissuemark.affy.roche.symbols。格林尼治时间”,包= " BioQC格林尼治时间”)< - readGmt (gmtFile) # #——gmtReadin ----------------------------------------------------------- Nrow < - 2000 l Nsample < - 5 l gss <独特(unlist(酸式焦磷酸钠(日格林尼治时间函数(x) x基因美元)))myEset < -新(“ExpressionSet exprs =矩阵(rnorm (Nrow * Nsample), Nrow = Nrow), featureData = new(“AnnotatedDataFrame data.frame (GeneSymbol =样本(gss, Nrow )))) ## ---- runBioQC ------------------------------------------------------------ 日格林尼治时间dummyRes < - wmwTest (myEset valType = " p。更大的",简化=真)总结(p。调整(BH dummyRes。 ")) ## ---- basicDs ------------------------------------------------------------- myMatrix < -矩阵(rnorm (Nrow * Nsample), ncol = Nsample dimnames =列表(零、信件(1:Nsample))) myList < -列表(signature1 =样本(1:Nrow, 100), signature2 =样本(1:Nrow, 50), signature3 =样本(1:Nrow, 200)) wmwTest (myMatrix、myList valType = " p。大”,简化= TRUE) # #——基准 ----------------------------------------------------------- bm。Nrow <- 22000 bw。Nsample <- 5 bm。Ngs <- 5 bm。Ngssize <- sapply(1:bm。Ngs,函数(x)样本(1:bm.)Nrow/2, replace=TRUE)) ind <- lapply(1:bm。Ngs,函数(i)样本(1:bm.)Nrow, bm.Ngssize[i])) exprs <- matrix(round(rnorm(bm.Nrow*bw.Nsample),4), Nrow =bm.Nrow)系统。time(Cres <- wmwTest(exprs, ind, valType="p。less”,simplify=TRUE))系统。时间(rr < -应用(exprs 2函数(x)酸式焦磷酸钠(印第安纳州、功能(y) wmwTestInR (x, y, valType = " p.less ")))) ## ---- session_info -------------------------------------------------------- sessionInfo ()