tmpdir <- normalizePath(tempdir(), winslash = "/")
mydata.obj <- generateSyntheticData(dataset = "mydata", n.vars = 1000,
samples.per.cond = 5, n.diffexp = 100,
output.file = file.path(tmpdir, "mydata.rds"))
runDiffExp(data.file = file.path(tmpdir, "mydata.rds"), result.extent = "voom.limma",
Rmdfunction = "voom.limma.createRmd", output.directory = tmpdir,
norm.method = "TMM")
runDiffExp(data.file = file.path(tmpdir, "mydata.rds"), result.extent = "edgeR.exact",
Rmdfunction = "edgeR.exact.createRmd", output.directory = tmpdir,
norm.method = "TMM",
trend.method = "movingave", disp.type = "tagwise")
## A correct table
file.table <- data.frame(input.files = file.path(tmpdir,
c("mydata_voom.limma.rds", "mydata_edgeR.exact.rds")),
datasets = c("mydata", "mydata"),
nbr.samples = c(5, 5),
repl = c(1, 1),
stringsAsFactors = FALSE)
new.table <- checkTableConsistency(file.table)
new.table
## An incorrect table
file.table <- data.frame(input.files = file.path(tmpdir,
c("mydata_voom.limma.rds", "mydata_edgeR.exact.rds")),
datasets = c("mydata", "mydata"),
nbr.samples = c(5, 3),
repl = c(2, 1),
stringsAsFactors = FALSE)
new.table <- checkTableConsistency(file.table)
new.table
## A table with missing information
file.table <- data.frame(input.files = file.path(tmpdir,
c("mydata_voom.limma.rds", "mydata_edgeR.exact.rds")),
stringsAsFactors = FALSE)
new.table <- checkTableConsistency(file.table)
new.table
Run the code above in your browser using DataLab