Learn R Programming

iPAC (version 1.16.0)

get.SingleLetterCode: get.SingleLetterCode

Description

This function takes in the 3 letter amino acid representation and returns the 1 letter representation.

Usage

get.SingleLetterCode(code)

Arguments

code
The 3 letter code in all capital letters.

Value

An amino acid single letter code returned as a string. The string will be an element in:{"P","A","V","L","I","M","C","F","Y","W","H","K","R","Q","N","E","D","S","T","X"}.

Details

If the 3 letter code is not found (either because it does not exist or because it is not in all capital letters), an "X" is returned.

This function is used as a helper function of get.AlignedPositions and get.Positions. It is not necessary to invoke it independently and we include it here solely as a matter of convenience for the user.

Examples

Run this code
get.SingleLetterCode("MET")

get.SingleLetterCode("GLN")
 
get.SingleLetterCode("gln")

get.SingleLetterCode("DMY")

Run the code above in your browser using DataLab