get.SingleLetterCode {iPAC}R Documentation

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.

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.

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"}.

Examples

get.SingleLetterCode("MET")

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

get.SingleLetterCode("DMY")

[Package iPAC version 1.38.0 Index]