Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
chemical
AA.hh
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
10
/// @file
11
/// @author Phil Bradley
12
13
14
#ifndef INCLUDED_core_chemical_AA_hh
15
#define INCLUDED_core_chemical_AA_hh
16
17
18
// Unit headers
19
20
// Project headers
21
22
// Utility headers
23
24
// C++ headers
25
// Commented by inclean daemon #include <string>
26
27
// AUTO-REMOVED #include <basic/Tracer.fwd.hh>
28
29
#include <ostream>
30
31
32
33
namespace
core {
34
namespace
chemical {
35
36
// temporary -- probably an enum?
37
///////////////////////////////////////////////////////////////////////////
38
/// @brief enumeration for amino acids and nucleotides types with the total
39
/// number as num_aa_types
40
///////////////////////////////////////////////////////////////////////////
41
// BUT DONT CODE TO THESE AS INTS!!!!!!
42
enum
AA
{
43
// protein 1-20
44
aa_ala
= 1,
45
aa_cys
,
46
aa_asp
,
47
aa_glu
,
48
aa_phe
,
49
aa_gly
,
50
aa_his
,
51
aa_ile
,
52
aa_lys
,
53
aa_leu
,
54
aa_met
,
55
aa_asn
,
56
aa_pro
,
57
aa_gln
,
58
aa_arg
,
59
aa_ser
,
60
aa_thr
,
61
aa_val
,
62
aa_trp
,
63
aa_tyr
,
64
num_canonical_aas
=
aa_tyr
,
65
// dna 21-24
66
na_ade
,
67
first_DNA_aa
=
na_ade
,
68
na_cyt
,
69
na_gua
,
70
na_thy
,
71
last_DNA_aa
=
na_thy
,
72
// rna 25-28
73
na_rgu
,
74
na_rad
,
75
na_rcy
,
76
na_ura
,
77
// virtual
78
aa_vrt
,
79
80
// unknown
81
aa_unk
,
82
num_aa_types
=
aa_unk
//keep this guy last
83
};
84
85
//////////////////////////////////////////////////////////
86
/// @brief give a AA string name and return its enum type
87
//////////////////////////////////////////////////////////
88
AA
89
aa_from_name
(
std::string
const
& name );
90
91
///////////////////////////////////////////////////////
92
/// @brief give a enum type and return the string name
93
///////////////////////////////////////////////////////
94
std::string
95
name_from_aa
(
AA
aa );
96
97
///////////////////////////////////////////////////////
98
/// @brief give a enum type and return the string name
99
///////////////////////////////////////////////////////
100
char
101
oneletter_code_from_aa
(
AA
aa );
102
103
///////////////////////////////////////////////////////////
104
/// @brief give a 1 letter code and return the string name
105
///////////////////////////////////////////////////////////
106
AA
107
aa_from_oneletter_code
(
char
onelettercode );
108
109
bool
110
oneletter_code_specifies_aa
(
char
onelettercode );
111
112
/// @brief input operator for AA enum type
113
std::istream &
operator >>
( std::istream & is,
AA
& aa );
114
/// @brief output operator for AA enum type
115
std::ostream &
operator <<
( std::ostream & os,
AA
const
& aa );
116
117
118
}
// chemical
119
}
// core
120
121
#endif
Generated on Sat Jun 1 2013 11:31:33 for Rosetta 3.5 by
1.8.4