StandardizeGeneSymbols | R Documentation |
Converts gene names of a Seurat single-cell object to a dictionary of standard symbols. This function is useful prior to integration of datasets from different studies, where gene names may be inconsistent.
StandardizeGeneSymbols(
obj,
assay = NULL,
slots = c("counts", "data"),
EnsemblGeneTable = NULL,
EnsemblGeneFile = NULL
)
obj |
A Seurat object |
assay |
Assay where gene names should be translated |
slots |
Slots where gene names should be translated |
EnsemblGeneTable |
A data frame of gene name mappings. This should have
the format of Ensembl BioMart tables
with fields "Gene name", "Gene Synonym" and "Gene stable ID" (and optionally
"NCBI gene (formerly Entrezgene) ID"). See also
the default conversion table in STACAS with |
EnsemblGeneFile |
If |
Returns a Seurat object with standard gene names. Genes not found in the standard list are removed. Synonyms are accepted when the conversion is not ambiguous.
data(EnsemblGeneTable.Mm)
obj <- StandardizeGeneSymbols(obj, EnsemblGeneTable=EnsemblGeneTable.Mm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.