refseq_AA_length {refseqR}R Documentation

Get the amino acid length from a protein accession

Description

refseq_AA_length() Returns the amino acid length 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_AA_length(protein, retries)

Arguments

protein

A character string of the XP id.

retries

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

Value

A numeric value representing the aa length of 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 XM ids from a set of XP accessions
 protein = c("XP_004487758", "XP_004488550")
 sapply(protein, function(x) refseq_AA_length(x, retries = 4), USE.NAMES = FALSE)


[Package refseqR version 1.1.2 Index]