View source: R/pathway_enrichment.R
genes_to_pathways | R Documentation |
This is a utility function which wraps several methods to extract pathway-based features from gene feature data
genes_to_pathways(
x,
enrichment_method = "GSVA",
gene_set_list = NULL,
batch_label_pw = NULL,
min_size = 5,
max_size = 200,
parallel = 1,
verbose = FALSE,
rwrfgsea_verbose = FALSE,
gene_key_x = "SYMBOL",
gs_subcats = c("GO:BP", "GO:MF", "CP:KEGG", "CP:REACTOME"),
gsva_kcdf = "Gaussian",
...
)
DiffRank(x, gene_set_list, parallel = 1)
x |
gene feature matrix, samples on columns and genes on rows. |
enrichment_method |
options: "DiffRank", "GSVA", "RWRFGSEA" |
gene_set_list |
list of gene sets with gene names that correspond to rows in x |
batch_label_pw |
batch labels for batch-wise enrichment, normal enrichment performed if NULL |
min_size |
a numeric value indicating the minimum size of gene sets included |
max_size |
a numeric value indicating the maximum size of gene sets included |
parallel |
a numeric value indicating the number of processors to use when doing the calculations in parallel. |
verbose |
controls verbosity |
rwrfgsea_verbose |
controls |
gene_key_x |
if |
gs_subcats |
if |
gsva_kcdf |
distribution name for |
... |
extra arguments are passed to |
a list of data.frame
s corresponding to the transformed features
based on the selected gene sets (only supports GO, KEGG and REACTOME at the moment)
data.frame
of pathway activities for each sample
DiffRank()
: DiffRank by Wang et al. BMC Medical Genomics 2019
library(COPS)
## GSVA example
ad_gsva <- genes_to_pathways(
ad_ge_micro_zscore,
"GSVA",
parallel = 1,
gene_key_x = "ENSEMBL",
gs_subcats = "CP:KEGG")
# batch-wise
ad_gsva <- genes_to_pathways(
ad_ge_micro_zscore,
"GSVA",
batch_label_pw = ad_studies$GSE,
parallel = 1,
gene_key_x = "ENSEMBL",
gs_subcats = "CP:KEGG")
## DiffRank example
ad_diffrank <- genes_to_pathways(
ad_ge_micro_zscore,
"DiffRank",
parallel = 1,
gene_key_x = "ENSEMBL",
gs_subcats = "CP:KEGG")
# batch-wise
ad_diffrank <- genes_to_pathways(
ad_ge_micro_zscore,
"DiffRank",
batch_label_pw = ad_studies$GSE,
parallel = 1,
gene_key_x = "ENSEMBL",
gs_subcats = "CP:KEGG")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.