View source: R/convert_gene_id.R
| convert_gene_id | R Documentation |
Converts between Ensembl, Symbol, and Entrez gene IDs using a reference table.
Supports both character vectors and data.frame columns. Automatically loads
species-specific reference data from data/, or downloads if unavailable.
convert_gene_id(
query,
from = "symbol",
to = c("ensembl_id", "entrez_id"),
species = c("human", "mouse"),
query_col = NULL,
ref_table = NULL,
keep_na = FALSE,
preview = TRUE
)
query |
Character vector or data.frame to convert. |
from |
Source ID type (e.g., "symbol", "ensembl_id", "entrez_id"). |
to |
Target ID type(s). Supports multiple. |
species |
Either |
query_col |
If |
ref_table |
Optional reference table. |
keep_na |
Logical. Whether to keep unmatched rows. Default: |
preview |
Logical. Whether to preview output. Default: |
A data.frame containing original and converted columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.