View source: R/Seurat.Utils.Visualization.R
PercentInTranscriptome | R Documentation |
This function computes and visualizes gene expression levels as a fraction of total UMI (Unique Molecular Identifier) counts across all genes in a Seurat object. It aims to highlight the relative contribution of the most highly expressed genes to the overall transcriptome.
PercentInTranscriptome(
obj = combined.obj,
assay = DefaultAssay(obj),
n.genes.barplot = 25,
width.barplot = round(n.genes.barplot/4),
...
)
obj |
A Seurat object containing gene expression data. |
n.genes.barplot |
The number of top genes to be displayed in the final barplot, showing their expression as a percentage of the total UMIs. Default: 25. |
width.barplot |
The width of the barplot that visualizes the highest expressed genes.
Default: a quarter of |
The same Seurat object passed as input, but with an additional list in the @misc
slot
named 'TotalReadFraction'
that contains the relative total expression of each gene as a
fraction of total UMIs.
## Not run:
combined.obj <- PercentInTranscriptome(combined.obj)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.