00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 // $Id: peptides.h,v 1.10 2005/12/23 17:02:03 amoll Exp $ 00005 // 00006 00007 #ifndef BALL_STRUCTURE_PEPTIDES_H 00008 #define BALL_STRUCTURE_PEPTIDES_H 00009 00010 #ifndef BALL_COMMON_H 00011 # include <BALL/common.h> 00012 #endif 00013 00014 #ifndef BALL_KERNEL_PROTEIN_H 00015 # include <BALL/KERNEL/protein.h> 00016 #endif 00017 00018 namespace BALL 00019 { 00020 00021 namespace Peptides 00022 { 00027 00029 typedef std::list<String> ThreeLetterAASequence; 00030 00032 typedef String OneLetterAASequence; 00034 00039 00044 BALL_EXPORT char OneLetterCode(const String& aa); 00045 00051 BALL_EXPORT String ThreeLetterCode(char aa); 00052 00056 BALL_EXPORT OneLetterAASequence ThreeLetterToOneLetter(const ThreeLetterAASequence& sequence); 00057 00061 BALL_EXPORT ThreeLetterAASequence OneLetterToThreeLetter(const OneLetterAASequence& sequence); 00062 00068 BALL_EXPORT OneLetterAASequence GetSequence(const Protein& protein); 00070 00071 } // namespace Peptides 00072 00073 } // namespace BALL 00074 00075 #endif // BALL_STRUCTURE_PEPTIDES_H_ 00076 00077