View source: R/convert_gene_symbols_species.R
convert_gene_symbols_species | R Documentation |
Convert a vector of symbols from one species to another. Current options exist only for mouse to human and identifiers from one standard to another. Mouse identifiers will be MGI symbols. Human identifiers will be HGNC symbols. Multiple genes may be returned for any input gene, based on the possible one-to-many mapping of gene orthologs. This function is adapted from https://www.biostars.org/p/9567892/, and uses the MGI list of orthologs at https://www.informatics.jax.org/downloads/reports/HOM_MouseHumanSequence.rpt
convert_gene_symbols_species(
genes,
species_from,
species_to,
return_format = "orthologs_only"
)
genes |
character vector containing gene identifiers to convert |
species_from |
character, the species of the input gene identifiers. Must be "mouse" or "human"; partial matches are accepted. |
species_to |
character, the species of the output gene identifiers. Must be "mouse" or "human"; partial matches are accepted. |
return_format |
character, the format of the output gene identifiers. Must be "orthologs_only" or "orig_and_ortholog"; partial matches are accepted. |
a vector of gene symbols, of length similar to the input genes, minus any genes that do not have orthologs in 'species_to'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.