get.AASeq: get.AASeq

Description Usage Arguments Details Value Examples

View source: R/get.AASeq.R

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")

iPAC documentation built on Nov. 8, 2020, 7:48 p.m.