get.SingleLetterCode {iPAC} | R Documentation |
This function takes in the 3 letter amino acid representation and returns the 1 letter representation.
get.SingleLetterCode(code)
code |
The 3 letter code in all capital letters. |
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.
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"}.
get.SingleLetterCode("MET") get.SingleLetterCode("GLN") get.SingleLetterCode("gln") get.SingleLetterCode("DMY")