refseq_protein2mRNA {refseqR}R Documentation

Get the transcript accession from the protein accession

Description

refseq_protein2mRNA() Returns the transcript accession from a single protein accession.

Depending on the function, available accessions in refseqR include RefSeq models with the prefixes XM_ (mRNA), XR_ (non-coding RNA), and XP_ (protein), as well as subsequently curated RefSeq records with NM_, NR_, or NP_ accession prefixes.

Usage

refseq_protein2mRNA(protein)

Arguments

protein

A character string of the protein id.

Value

A character vector containing the XM ids that encode the protein.

Author(s)

Jose V. Die

See Also

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

Examples

 # Get the transcript id from a single protein accession
 protein <- "XP_020244413"
 refseq_protein2mRNA(protein)


 # Get the XM ids from a set of XP accessions
 protein = c("XP_004487758", "XP_004488550")
 sapply(protein, function(x) refseq_protein2mRNA(x), USE.NAMES = FALSE)


[Package refseqR version 1.1.2 Index]