View source: R/edgeR-slurm-lsf.R
slurmEdgeR | R Documentation |
Send an edgeR analysis job to SLURM
slurmEdgeR(
dgeList,
designMatrix,
contrastMatrix,
outdir = "edgeR_output",
outfilePrefix = "an-unnamed-project-",
overwrite = c("ask", "overwrite", "append", "no"),
mps = FALSE,
limmaVoom = FALSE,
appendGmt = NULL,
qos = c("short", "interactive", "normal"),
debug = FALSE
)
dgeList |
An |
designMatrix |
The design matrix to model the data |
contrastMatrix |
The contrast matrix matching the design matrix |
outdir |
Output directory of the edgeR script. Default value "edgeR_output". |
outfilePrefix |
Prefix of the output files. It can include directories,
e.g. |
overwrite |
If |
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 Slurm. Available values include |
debug |
Logical, if |
A list of two items, command
, the command line call, and
output
, the output of the SLURM command in bash
Even if the output directory is empty, if overwrite
is set to
no
(or if the user answers no
), the job will not be started.
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)
## \dontrun{
## slurmEdgeR(y, designMatrix=myDesign, contrastMatrix=myContrast,
## outfilePrefix="test", outdir=tempdir())
## }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.