## Not run:
# require(bsseq)
#
# ## first read in methylation data.
# path <- file.path(system.file(package="DSS"), "extdata")
# dat1.1 <- read.table(file.path(path, "cond1_1.txt"), header=TRUE)
# dat1.2 <- read.table(file.path(path, "cond1_2.txt"), header=TRUE)
# dat2.1 <- read.table(file.path(path, "cond2_1.txt"), header=TRUE)
# dat2.2 <- read.table(file.path(path, "cond2_2.txt"), header=TRUE)
#
# ## make BSseq objects
# BSobj <- makeBSseqData( list(dat1.1, dat1.2, dat2.1, dat2.2),
# c("C1","C2", "N1", "N2") )
#
# ## DML test without smoothing
# dmlTest <- DMLtest(BSobj, group1=c("C1", "C2"), group2=c("N1", "N2"))
# head(dmlTest)
#
# ## For whole-genome BS-seq data, perform DML test with smoothing
# require(bsseqData)
# data(BS.cancer.ex)
# ## take a small portion of data and test
# BSobj <- BS.cancer.ex[10000:15000,]
# dmlTest <- DMLtest(BSobj, group1=c("C1", "C2", "C3"), group2=c("N1","N2","N3"),
# smoothing=TRUE, smoothing.span=500)
# head(dmlTest)
# ## End(Not run)
Run the code above in your browser using DataLab