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

Description Usage Arguments Author(s) Examples

View source: R/helperfunctions.R

Description

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

Usage

1
2
translate_aminoacids( input,
                      switchMode )

Arguments

input

Vector of GROMOS abbreviations.

switchMode

Type "1" results in single-letter, type "2" in three-letter code.

Author(s)

Christian Margreitter

Examples

1
2
translate_aminoacids( c( "ALA", "HISA", "SER" ),
                      switchMode = 2 )

Example output

Loading required package: MASS
Loading required package: RColorBrewer
Loading required package: gplots

Attaching package: 'gplots'

The following object is masked from 'package:stats':

    lowess

Loading required package: gtools
[1] "ALA" "HIS" "SER"

MDplot documentation built on May 2, 2019, 7:02 a.m.