Rosetta
Namespaces | Functions
AA.cc File Reference

translation between amino acid enum and string name/one letter char codes More...

#include <core/chemical/AA.hh>
#include <utility/exit.hh>
#include <map>
#include <string>
#include <utility/vector1.hh>
#include <sstream>

Namespaces

 core
 A class for reading in the atom type properties.
 
 core::chemical
 

Functions

std::map< std::string, AA > core::chemical::setup_name2aa ()
 setup the map that converts string name to AA enum More...
 
std::map< char, AA > core::chemical::setup_oneletter2aa ()
 setup the map the converts one letter char to AA enum More...
 
std::map< std::string, AA > const & core::chemical::name2aa ()
 map that converts string name to AA enum More...
 
std::map< char, AA > const & core::chemical::oneletter2aa ()
 map that converts one letter char to AA enum More...
 
utility::vector1< std::string > core::chemical::setup_aa2name ()
 setup the vector that maps AA enum to string name More...
 
utility::vector1< std::string > const & core::chemical::aa2name ()
 vector that maps AA enum to string name More...
 
utility::vector1< char > core::chemical::setup_aa2oneletter ()
 setup the vector that maps AA enum to one letter char More...
 
utility::vector1< char > const & core::chemical::aa2oneletter ()
 vector that maps AA enum to one letter char More...
 
AA core::chemical::aa_from_name (std::string const &name)
 Give an AA string 3-letter code, return its enum type. More...
 
AA core::chemical::aa_from_one_or_three (std::string const &name)
 
bool core::chemical::is_canonical_D_aa (AA const aa)
 Give an enum type, return true if and only if it is a D-amino acid that is the mirror image of a canonical alpha-L-amino acid. More...
 
bool core::chemical::is_canonical_L_aa_excluding_gly (AA const aa)
 Give an enum type, return true if and only if it is an L-amino acid of a canonical type. More...
 
bool core::chemical::is_canonical_L_aa_or_gly (AA const aa)
 Given an enum type, return true if and only if it is a canonical L-amino acid. Rocco approves. More...
 
bool core::chemical::is_canonical_beta3_aa (AA const aa)
 Given an enum type, return true if and only if it is a canonical beta-amino acid. More...
 
bool core::chemical::is_aa_name_unknown (std::string const &name)
 Given aa three letter string, return true if it is an unknown aa. More...
 
AA core::chemical::get_L_equivalent (AA const aa)
 Given an enum type for a D-amino acid with a canonical side-chain, return the enum type for the corresponding L-amino acid (or aa_unk if the corresponding L-amino acid cannot be determined). More...
 
AA core::chemical::get_D_equivalent (AA const aa)
 Given an enum type for a L-amino acid with a canonical side-chain, return the enum type for the corresponding D-amino acid (or aa_unk if the corresponding D-amino acid cannot be determined). More...
 
std::istream & core::chemical::operator>> (std::istream &is, AA &aa)
 input operator for AA enum type More...
 
std::ostream & core::chemical::operator<< (std::ostream &os, AA const &aa)
 output operator for AA enum type More...
 
std::string core::chemical::name_from_aa (AA aa)
 give a enum type and return the string name More...
 
std::string core::chemical::full_name_from_aa (AA aa)
 give the canonical "full" ResidueType name for given AA More...
 
char core::chemical::oneletter_code_from_aa (AA aa)
 give a enum type and return the string name More...
 
AA core::chemical::aa_from_oneletter_code (char onelettercode)
 give a 1 letter code and return the string name More...
 
bool core::chemical::oneletter_code_specifies_aa (char onelettercode)
 

Detailed Description

translation between amino acid enum and string name/one letter char codes

Author
Phil Bradley