refseq_fromGene | R Documentation |
refseq_fromGene()
Returns the mRNA or protein accession from a single GeneID.
refseq_fromGene(GeneID, sequence)
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. |
A character vector containing the mRNA or protein accession corresponding to the especified GeneID
.
Jose V. Die
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.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.