check.genes | R Documentation |
Verifies the presence of specified gene names within a Seurat object or queries them against the HGNC database. This function is useful for ensuring gene names are correctly formatted and exist within the dataset or are recognized gene symbols.
check.genes(
genes,
makeuppercase = FALSE,
HGNC.lookup = FALSE,
obj,
assay.slot = c("RNA", "integrated")[1],
data.slot = c("counts", "data")[2],
verbose = TRUE,
...
)
genes |
A vector of gene names to be checked. |
makeuppercase |
If |
HGNC.lookup |
If |
obj |
The Seurat object against which the gene names will be checked. |
assay.slot |
Assay slot of the Seurat object to check for gene names. Default: |
data.slot |
Data slot of the assay to check for gene names. Default: |
verbose |
If |
GetAssayData
, qHGNC
## Not run:
if (interactive()) {
# Check for the presence of a gene name in uppercase
check.genes(genes = "top2a", makeuppercase = TRUE, obj = combined.obj)
# Check for a gene name with verbose output and HGNC lookup
check.genes(genes = "VGLUT2", verbose = TRUE, HGNC.lookup = TRUE, obj = combined.obj)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.