View source: R/bioinfo_rmd_contrasts.R
bioinfo_rmd_contrasts | R Documentation |
Write Bioinformatics RMD workflow.
bioinfo_rmd_contrasts(
filename,
local.path = NULL,
data.desc = "Gene expression",
input.files,
data.logged = TRUE,
data.nas = TRUE,
grp.var = "grp",
covars = NULL,
aw.model = paste0("~0+", grp.var),
use_aw = TRUE,
use_trend = FALSE,
contr.v,
limma.model = NULL,
row.type = "gene",
gmt_abbrev = c("reactome", "tft"),
gmt_prefix = c("c2.cp.reactome", "c3.tft.gtrd")
)
filename |
Filename of RMD. |
local.path |
Path of RMD. |
data.desc |
Description of data sources for |
input.files |
Character vector of input files. Matrix, pheno, and (optionally) annot. |
data.logged |
Logical indicating if data has been log2-transformed. |
data.nas |
Logical indicating if data has NAs. |
grp.var |
Variable name in |
covars |
Variable name in |
aw.model |
Model for 'limma::arrayWeights'. |
use_aw |
Logical indicating if array weights should be used. |
use_trend |
Logical indicating if |
contr.v |
Named vector of contrasts. |
limma.model |
Model formula for |
row.type |
Character in filename for features. |
gmt_abbrev |
Character vector of abbreviation of pathway name, e.g. "reactome" or "tft". |
gmt_prefix |
Character vector of GMT file(s) prefixes. |
If need to remove a sample, rerun with new input.files
.
bioinfo_rmd_contrasts(filename="new_analysis", input.files = c("counts.csv", "pheno.csv"),
contr.v='c(treat="treat-control")')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.