Learn R Programming

iPAC (version 1.16.0)

get.AASeq: get.AASeq

Description

Reads a FASTA (or similarly formatted) file and returns all the amino acids as a list.

Usage

get.AASeq(filelocation)

Arguments

filelocation
The location of the file being read.

Value

An ordered list of amino acids in the protein. Each element of the list represents an amino acid.

Details

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.

Examples

Run this code
#Reads the amino acid sequence for KRAS from Uniprot
get.AASeq("http://www.uniprot.org/uniprot/P01116-2.fasta")

Run the code above in your browser using DataLab