refseq_AAseq {refseqR} | R Documentation |
Extract the amino acid sequence into a Biostrings object
Description
refseq_AAseq()
Parses a single/multiple protein accessions (RefSeq format) and extract
the amino acid sequences into a AAStringSet
object.
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_AAseq(accession)
Arguments
accession |
A character string containing a single/multiple accession ids. |
Value
An object of AAStringSet
class.
Author(s)
Jose V. Die
Examples
accession = c("XP_004487758", "XP_004488550", "XP_004501961")
my_aa <- refseq_AAseq(accession)
# Now, the `AAStringSet`can be easily used to make a fasta file :
# writeXStringSet(x= my_aa, filepath = "aa_result")
[Package refseqR version 1.1.2 Index]