View source: R/Visualizations_SDA.R
plot_loadings_coordinatesV2 | R Documentation |
Generates a genomic coordinate plot of SDA component loadings. The function retrieves gene location data via biomaRt or uses a local file if provided and available, merges this with the loadings, and annotates the top positive and negative loading genes. Optionally, specific genes can be highlighted.
plot_loadings_coordinatesV2(
SDARedDataLS,
reduction,
mart = NULL,
genes = NULL,
dimN,
highlight_genes = NULL,
TopNpos = 10,
TopNneg = 10,
data_set = "hsapiens_gene_ensembl",
invertWeights = FALSE,
includeUnMapped = TRUE,
geneLocPath = NULL
)
SDARedDataLS |
A list containing SDA loadings. |
reduction |
Character or numeric value specifying which reduction to use from the loadings list. |
mart |
An optional biomaRt object; if |
genes |
An optional data frame of gene coordinates. If |
dimN |
Numeric value indicating the component (dimension) index to plot. |
highlight_genes |
Optional character vector of gene symbols to highlight in the plot. |
TopNpos |
Integer specifying the number of top positive loadings to annotate. |
TopNneg |
Integer specifying the number of top negative loadings to annotate. |
data_set |
Character string indicating the Ensembl dataset to use (e.g., |
invertWeights |
Logical. If |
includeUnMapped |
Logical. If |
geneLocPath |
Optional character string specifying the file path for pre-saved gene location data. |
A ggplot2
object representing the genomic coordinate plot of loadings.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.