get.AASeq {iPAC} | R Documentation |
Reads a FASTA (or similarly formatted) file and returns all the amino acids as a list.
get.AASeq(filelocation)
filelocation |
The location of the file being read. |
The first line in the file being processed must begin with a ">". If the ending character in the file is a "*" (indicating a terminator – as is common in the COSMIC database), this character is excluded from the sequence as well.
An ordered list of amino acids in the protein. Each element of the list represents an amino acid.
#Reads the amino acid sequence for KRAS from Uniprot get.AASeq("https://www.uniprot.org/uniprot/P01116-2.fasta")