View source: R/refseq_geneSymbol.R
refseq_geneSymbol | R Documentation |
refseq_geneSymbol()
Returns the gene symbol from a single Gene id. accession.
refseq_geneSymbol (id, db)
id |
A character string of the transcript or protein id. |
db |
A character string of the "nuccore" or "protein" database. |
A character vector containing the gene symbol corresponding to the especified accession as id
.
Jose V. Die
refseq_protein2RNA
to obtain the transcript ids that encode a set of protein ids.
refseq_RNA2protein
to obtain the protein ids encoded by a set of transcript ids.
# Get the gene symbol from a set of transcript accessions
id = c("XM_004487701", "XM_004488493")
sapply(id, function(x) refseq_geneSymbol (x, db = "nuccore"), USE.NAMES = FALSE)
# Get the gene symbol from a set of XP accessions
id = c("XP_004487758")
sapply(id, function(x) refseq_geneSymbol (x, db = "protein"), USE.NAMES = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.