50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


MDplot (version 0.3.1)

translate_aminoacids: Function to translate between canonical and GROMOS amino acid abbreviations

Description

Converts an aminoacid naming scheme in the context of GROMOS (e.g. containing HISH) into canonical three- or one-letter codes.

Usage

translate_aminoacids( input, switchMode)

Arguments

input
Vector of GROMOS abbreviations.
switchMode
Type "1" results in three letter, type "2" in single-letter code.

Examples

Run this code
# to one letter code
test <- c( "ALA", "HISA", "SER" )
MDplot::translate_aminoacids( test, switchMode = 2 )

Run the code above in your browser using DataLab