View source: R/edgeR-slurm-lsf.R
lsfEdgeRcommand | R Documentation |
Return the LSF command to run the edgeR script
lsfEdgeRcommand(
dgeList,
designContrast,
outdir = "edgeR_output",
outfilePrefix = "an-unnamed-project-",
mps = FALSE,
limmaVoom = FALSE,
appendGmt = NULL,
qos = c("long", "preempty", "short"),
rootPath = "~/apps/geneexpression",
debug = FALSE,
bsubFile = NULL
)
dgeList |
An |
designContrast |
The DesignContrast object to model the data |
outdir |
Output directory of the edgeR script. Default value "edgeR_output". |
outfilePrefix |
Prefix of the output files. It can include directories,
e.g. |
mps |
Logical, whether molecular-phenotyping analysis is run. |
limmaVoom |
Logical, whether the limma-voom model is run instead of the edgeR model |
appendGmt |
|
qos |
Character, specifying Quality of Service of LSF Available values include |
rootPath |
Character string, the directory of geneexpression scripts, under which |
debug |
Logical, if |
bsubFile |
This function wraps the function It uses |
edgeRcommand
mat <- matrix(rnbinom(100, mu=5, size=2), ncol=10)
rownames(mat) <- sprintf("gene%d", 1:nrow(mat))
myFac <- gl(2,5, labels=c("Control", "Treatment"))
y <- edgeR::DGEList(counts=mat, group=myFac)
myDesign <- model.matrix(~myFac); colnames(myDesign) <- levels(myFac)
myContrast <- limma::makeContrasts(Treatment, levels=myDesign)
myDesCon <- DesignContrast(designMatrix=myDesign, contrastMatrix=myContrast)
lsfEdgeRcommand(y, designContrast=myDesCon,
outfilePrefix="test", outdir=tempdir())
## remove the bsub file
file.remove("test.bsub")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.