refseq_fromGene {refseqR}R 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, retries)

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.

retries

A numeric value to control the number of retry attempts to handle 502 errors.

Value

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

Author(s)

Jose V. Die

See Also

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

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

Examples


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

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


[Package refseqR version 1.1.2 Index]