21 #include "utility/assert.hh"
30 using namespace coarse;
31 using namespace conformation;
32 using namespace chemical;
42 os <<
"Rule for " << my_AA_ <<
" : "<< endl;
44 os <<
"coarse atom " << it->first <<
" { ";
45 for (
ConstTokenIterator tit=it->second.begin(), etit=it->second.end(); tit!=etit; ++tit) {
55 assert( tag ==
"coarse_two_bead" );
60 const int n_restype =
aa_tyr;
63 for (
int iaa=
aa_ala; iaa<=n_restype;++iaa) {
64 AA aa=
static_cast<AA>(iaa);
69 rules_[aa]->add_to_bead(
"B1") <<
"CB";
74 rules_[
aa_ile]->add_to_bead(
"B1") <<
"CG2";
75 rules_[
aa_arg]->add_to_bead(
"B1") <<
"CG" <<
"CD";
76 rules_[
aa_glu]->add_to_bead(
"B1") <<
"CG";
77 rules_[
aa_gln]->add_to_bead(
"B1") <<
"CG";
78 rules_[
aa_lys]->add_to_bead(
"B1") <<
"CG";
79 rules_[
aa_pro]->add_to_bead(
"B1") <<
"CG" <<
"CD";
80 rules_[
aa_met]->add_to_bead(
"B1") <<
"CG";
81 for (
int iaa=
aa_ala;iaa<=n_restype;iaa++) {
82 AA aa=
static_cast<AA>(iaa);
93 return rules_.find(aa)!=rules_.end();
97 typedef RuleMap::iterator MIT;
98 for (MIT it=rules_.begin(),eit=rules_.end(); it!=eit; ++it) {
99 it->second->pretty_print(os);