GetUpdateStats | R Documentation |
Generates statistics on the gene symbol updates performed by UpdateGenesSeurat()
.
This function analyzes the data frame of gene symbols before and after the update process,
providing insights into the proportion and total number of genes that were updated.
GetUpdateStats(genes = HGNC.updated[[i]])
genes |
A data frame of gene symbols before and after update, typically the output of
|
The function examines the Approved
column of the input data frame to identify
gene symbols marked for update and compares the original and suggested symbols to determine
actual updates. The statistics highlight the efficiency and impact of the gene symbol
updating process, aiding in the assessment of data preprocessing steps.
A named vector with statistics on gene updates, including the percentage of updated genes, the absolute number of updated genes, and the total number of genes processed.
The function requires the input data frame to have specific columns as produced by
HGNChelper::checkGeneSymbols()
and subsequently processed by UpdateGenesSeurat()
.
Ensure that the input adheres to this format for accurate statistics.
UpdateGenesSeurat
, for the function that updates gene symbols and produces
the input data frame for this function.
## Not run:
if (interactive()) {
# Assuming `HGNC.updated.genes` is your data frame containing the original and
# suggested gene symbols, as returned by `UpdateGenesSeurat()`
updateStats <- GetUpdateStats(genes = HGNC.updated.genes)
# `updateStats` now contains the update statistics, including percentage and count of updated genes
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.