### R code from vignette source 'vignettes/ABSSeq/inst/doc/ABSSeq.Rnw' ################################################### ### code chunk number 1: ABSSeq.Rnw:27-28 ################################################### library(ABSSeq) ################################################### ### code chunk number 2: ABSSeq.Rnw:33-35 ################################################### data(simuN5) names(simuN5) ################################################### ### code chunk number 3: ABSSeq.Rnw:40-41 ################################################### simuN5$groups ################################################### ### code chunk number 4: ABSSeq.Rnw:46-47 ################################################### conditions <- factor(c(rep(1,5),rep(2,5))) ################################################### ### code chunk number 5: ABSSeq.Rnw:52-54 ################################################### obj <- ABSDataSet(simuN5$counts, factor(simuN5$groups)) obj1 <- ABSDataSet(simuN5$counts, conditions) ################################################### ### code chunk number 6: ABSSeq.Rnw:59-63 ################################################### obj1 <- ABSDataSet(simuN5$counts, factor(simuN5$groups),"User",runif(10,1,2)) normMethod(obj1) normMethod(obj1) <- "DESeq" normMethod(obj1) ################################################### ### code chunk number 7: ABSSeq.Rnw:68-70 ################################################### obj=normalFactors(obj) sizeFactors(obj) ################################################### ### code chunk number 8: ABSSeq.Rnw:75-76 ################################################### head(counts(obj,norm=TRUE)) ################################################### ### code chunk number 9: ABSSeq.Rnw:81-82 ################################################### obj=calPara(obj) ################################################### ### code chunk number 10: plotDifftoBase ################################################### plotDifftoBase(obj) ################################################### ### code chunk number 11: plotDifftoBase ################################################### plotDifftoBase(obj) ################################################### ### code chunk number 12: ABSSeq.Rnw:103-105 ################################################### obj <- GPTest(obj) head(results(obj,c("pvalue","adj.pvalue"))) ################################################### ### code chunk number 13: ABSSeq.Rnw:110-111 ################################################### head(results(obj)) ################################################### ### code chunk number 14: ABSSeq.Rnw:116-120 ################################################### data(simuN5) obj <- ABSDataSet(simuN5$counts, factor(simuN5$groups)) res <- ABSSeq(obj) head(res)