refseq_geneSymbol: Get the gene symbol

View source: R/refseq_geneSymbol.R

refseq_geneSymbolR Documentation

Get the gene symbol

Description

refseq_geneSymbol() Returns the gene symbol from a single Gene id. accession.

Usage

refseq_geneSymbol (id, db)

Arguments

id

A character string of the transcript or protein id.

db

A character string of the "nuccore" or "protein" database.

Value

A character vector containing the gene symbol corresponding to the especified accession as id.

Author(s)

Jose V. Die

See Also

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.

Examples


# 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)


refseqR documentation built on Oct. 30, 2024, 1:06 a.m.