autoPLIER.get_top_pathway_LVs | R Documentation |
Retrieve LVs associated with a named pathway.
autoPLIER.get_top_pathway_LVs(ap, ...)
ap |
AutoPLIER object. |
... |
Additional arguments for autoPLIER.get_top_pathway_LVs. See details. |
pathway - List of pathways.
n_LVs - Number of latent variables to retrieve.
Numeric object with the chosen pathway and its corresponding LVs.
# Example datasets xtrain <- read.csv(system.file("extdata", "GSE157103_icu_tpm.csv.xz", package = "autoplieR"), row.names = 1) pwy <- read.csv(system.file("extdata", "pathways.csv.xz", package = "autoplieR"), row.names = 1) # Fit and transform mod <- autoPLIER(n_components = 50) autoPLIER.fit_transform(mod, x_train = xtrain, pathways = pwy, maxepoch=100L, verbose=0) # Get LVs for a pathway mod <- autoPLIER.get_top_pathway_LVs(mod, pathway="BIOCARTA_VDR_PATHWAY", n_LVs=2L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.