get.AASeq: get.AASeq

Description Usage Arguments Details Value Examples

Description

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

Usage

1
get.AASeq(filelocation)

Arguments

filelocation

The location of the file being read.

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.

Value

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

Examples

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

gryslik/iPAC documentation built on May 18, 2019, 3:42 p.m.