Description Usage Arguments Value Examples
View source: R/addPercentMtRibo.R
Get percentage of transcripts of gene list compared to all transcripts per cell.
1 | addPercentMtRibo(object, assay = "RNA", organism, gene_nomenclature)
|
object |
Seurat object. |
assay |
Assay to pull counts from; defaults to 'RNA'. Only relevant in Seurat v3.0 or higher since the concept of assays wasn't implemented before. |
organism |
Organism, can be either human ('hg') or mouse ('mm'). Genes need to annotated as gene symbol, e.g. MKI67 (human) / Mki67 (mouse). |
gene_nomenclature |
Define if genes are saved by their name ('name'), ENSEMBL ID ('ensembl') or GENCODE ID ('gencode_v27', 'gencode_vM16'). |
Seurat object with two new meta data columns containing the percentage of mitochondrial and ribosomal gene expression for each cell.
1 2 3 4 5 6 7 8 | pbmc <- readRDS(system.file("extdata/v1.3/pbmc_seurat.rds",
package = "cerebroApp"))
pbmc <- addPercentMtRibo(
object = pbmc,
assay = 'RNA',
organism = 'hg',
gene_nomenclature = 'name'
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.