refseq_fromGene: Get the mRNA or protein accession

refseq_fromGeneR Documentation

Get the mRNA or protein accession

Description

refseq_fromGene() Returns the mRNA or protein accession from a single GeneID.

Usage

refseq_fromGene(GeneID, sequence)

Arguments

GeneID

A character string of the GeneID.

sequence

A character string of the mRNA or protein accession to fetch data from mRNA or protein databases, respectively.

Value

A character vector containing the mRNA or protein accession corresponding to the especified GeneID.

Author(s)

Jose V. Die

See Also

refseq_protein2RNA to obtain the transcript accessions that encode a set of protein accessions.

refseq_RNA2protein to obtain the protein accessions encoded by a set of transcript accessions.

Examples


# Get the XM accessions from a set of gene ids
locs <- c("LOC101512347")
sapply(locs, function(x) refseq_fromGene (x, sequence = "transcript"), USE.NAMES = FALSE)

# Get the XP accessions from a set of gene ids
locs <- c("LOC101512347")
sapply(locs, function(x) refseq_fromGene (x, sequence = "protein"), USE.NAMES = FALSE)


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