View source: R/Visualizations_Seurat_based.R
plot_loadings_coordinates.seurat | R Documentation |
This function generates a plot of gene loadings along genomic coordinates based on a Seurat object.
plot_loadings_coordinates.seurat(
SerObj,
reduction = "pca",
redLab = "PC",
loadingsLS = NULL,
highlight_genes = NULL,
TopNpos = 10,
TopNneg = 10,
data_set = "hsapiens_gene_ensembl",
dimN = 1,
invertWeights = F,
includeUnMapped = T,
geneLocPath = NULL
)
SerObj |
A Seurat object. |
reduction |
The dimensionality reduction method used in Seurat (default is "pca"). |
loadingsLS |
Give a list of loadings to use instead of Seurat object SDA reduction. |
highlight_genes |
A character vector of gene symbols to highlight in the plot (default is NULL). |
TopNpos |
The number of top positive loadings to display (default is 10). |
TopNneg |
The number of top negative loadings to display (default is 10). |
data_set |
passed to SDAtools:::get.location data_set default "hsapiens_gene_ensembl" can be #mmulatta_gene_ensembl .. see ??useMart or do: mart = useMart('ensembl'), followed by listDatasets(mart). |
dimN |
the reduction dim default = 1 |
invertWeights |
to invert the loading weight i.e., -loadings |
includeUnMapped |
to include un mapped genes e.g. LOCs default = T |
A ggplot object representing the loadings along genomic coordinates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.