UpdateGenesSeurat | R Documentation |
This function updates gene symbols in a Seurat object based on current gene nomenclature guidelines, using HGNChelper(). It checks and updates gene symbols to their latest approved versions,ensuring that gene annotations are current and consistent. The function optionally enforces unique gene symbols and provides statistics on the update process.
UpdateGenesSeurat(
obj = ls.Seurat[[i]],
species_ = "human",
assay = "RNA",
EnforceUnique = TRUE,
ShowStats = FALSE
)
obj |
A Seurat object containing gene expression data. Default: |
species_ |
The species for which the gene symbols are checked and updated,
used to ensure the correct gene nomenclature is applied. Default: |
EnforceUnique |
Logical flag indicating whether to enforce unique gene symbols
within the Seurat object. When set to |
ShowStats |
Logical flag indicating whether to display statistics about the gene
symbol update process. When set to |
A modified Seurat object with updated gene symbols. The function directly modifies the input Seurat object, ensuring that gene symbols adhere to the latest nomenclature.
checkGeneSymbols
for details on checking and updating gene symbols.
## Not run:
if (interactive()) {
# Assuming `mySeuratObject` is your Seurat object
updatedSeuratObject <- UpdateGenesSeurat(
obj = mySeuratObject, species_ = "human",
EnforceUnique = TRUE, ShowStats = TRUE
)
# `updatedSeuratObject` now has updated gene symbols
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.