convert_single: Convert amino acid abbreviations

View source: R/convert.R

convert_singleR Documentation

Convert amino acid abbreviations

Description

convert_single() converts the 1-letter amino acid abbreviation to the 3-letter amino acid abbreviation and convert_three() does the opposite.

Usage

convert_single(str)

convert_three(str)

Arguments

str

Character vector containing amino acids to convert.

Details

Conversion is case-insensitive, but always returns capitalized 1-letter and 3-letter abbreviations in title-case.

Value

Character vector with converted amino acid abbreviations.

Examples

# Convert 1-letter abbreviation
convert_single("G235L")
convert_single("s545p")

# Convert 3-letter abbreviation
convert_three("Gly235Leu")
convert_three("SER545LEU")

bailey-lab/miplicorn documentation built on March 19, 2023, 7:40 p.m.