| gsva.render | R Documentation |
Render continuous gene or protein sample profiles as pathway-level score
matrices using methods provided by the GSVA package.
gsva.render(
fgs,
mtr,
method = c("gsva", "ssgsea", "zscore", "plage"),
min_ngenes = 1L,
max_ngenes = Inf,
method_parameters = list(),
case_sensitive = FALSE,
verbose = TRUE
)
fgs |
Named list of functional gene sets. |
mtr |
Numeric gene-by-sample expression matrix. |
method |
Unique methods selected from |
min_ngenes |
Minimum gene set size passed to |
max_ngenes |
Maximum gene set size passed to |
method_parameters |
Named list of method-specific argument lists,
forwarded to the corresponding |
case_sensitive |
Use case-sensitive gene identifier matching. |
verbose |
Report progress from |
Every selected GSVA-family method is run separately on the same
gene-by-sample matrix and FGS list. Method-specific options are supplied in
method_parameters. These are pathway activity scores; this wrapper does
not calculate p- or q-values.
A nearender_result. scores contains one
pathway-by-sample matrix per selected method, in request order.
statistics contains the same master score matrices under the same names.
diagnostics$mapped_fgs_sizes records the number of input-matrix genes
mapped to each FGS. inputs records pathway and sample names, and
parameters records size limits and method-specific arguments.
texture.render(), spectral.render(), ora.render()
profiles <- matrix(seq_len(24), nrow = 6,
dimnames = list(letters[1:6], paste0("sample_", 1:4)))
fgs <- list(first = c("a", "b", "c"), second = c("d", "e", "f"))
if (interactive() && requireNamespace("GSVA", quietly = TRUE)) {
result <- gsva.render(fgs, profiles, method = "zscore",
verbose = FALSE)
result$scores$zscore
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.