Skip to content
Snippets Groups Projects
Commit 548c1073 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

remove functions that are never used

parent 75371836
No related branches found
No related tags found
No related merge requests found
......@@ -10,9 +10,6 @@ void export_Modeller()
class_<ost::mol::mm::Modeller>("MMModeller", no_init)
.def("GenerateDisulfidBonds",&ost::mol::mm::Modeller::GenerateDisulfidBonds,(arg("ent"))).staticmethod("GenerateDisulfidBonds")
.def("GenerateCYSHEMEBonds",&ost::mol::mm::Modeller::GenerateCYSHEMEBonds,(arg("ent"))).staticmethod("GenerateCYSHEMEBonds")
.def("GenerateHISHEMEBonds",&ost::mol::mm::Modeller::GenerateHISHEMEBonds,(arg("ent"))).staticmethod("GenerateHISHEMEBonds")
.def("GenerateMETHEMEBonds",&ost::mol::mm::Modeller::GenerateDisulfidBonds,(arg("ent"))).staticmethod("GenerateMETHEMEBonds")
.def("AssignPDBNaming",&ost::mol::mm::Modeller::AssignPDBNaming,(arg("ent"))).staticmethod("AssignPDBNaming")
.def("AssignGromacsNaming",&ost::mol::mm::Modeller::AssignGromacsNaming,(arg("ent"))).staticmethod("AssignGromacsNaming")
;
......
......@@ -46,111 +46,6 @@ void Modeller::GenerateDisulfidBonds(ost::mol::EntityHandle& handle){
}
}
void Modeller::GenerateCYSHEMEBonds(ost::mol::EntityHandle& handle){
ost::mol::ResidueHandleList res_list = handle.GetResidueList();
ost::mol::XCSEditor ed = handle.EditXCS();
for(ost::mol::ResidueHandleList::iterator i = res_list.begin();
i != res_list.end(); ++i){
if(i->GetName() == "HEM" || i->GetName() == "HEME"){
ost::mol::AtomHandle fe = i->FindAtom("FE");
if(fe.IsValid()){
ost::mol::AtomHandleList in_reach = handle.FindWithin(fe.GetPos(), 3.0);
for(ost::mol::AtomHandleList::iterator j = in_reach.begin();
j != in_reach.end(); ++j){
if( j->GetName() == "SG"){
if(!ost::mol::BondExists(fe,*j)){
ed.Connect(fe,*j);
}
ed.RenameResidue(*i,"HEME");
ed.RenameResidue(j->GetResidue(),"CYS2");
}
}
}
ost::mol::AtomHandle cab = i->FindAtom("CAB");
if(cab.IsValid()){
ost::mol::AtomHandleList in_reach = handle.FindWithin(cab.GetPos(), 0.23);
for(ost::mol::AtomHandleList::iterator j = in_reach.begin();
j != in_reach.end(); ++j){
if(j->GetName() == "SG"){
if(!BondExists(cab,*j)){
ed.Connect(cab,*j);
}
ed.RenameResidue(*i,"HEME");
ed.RenameResidue(j->GetResidue(),"CYS2");
}
}
}
ost::mol::AtomHandle cac = i->FindAtom("CAC");
if(cac.IsValid()){
ost::mol::AtomHandleList in_reach = handle.FindWithin(cac.GetPos(),0.23);
for(ost::mol::AtomHandleList::iterator j = in_reach.begin();
j != in_reach.end(); ++j){
if(j->GetName() == "SG"){
if(!BondExists(cac,*j)){
ed.Connect(cac,*j);
}
ed.RenameResidue(*i,"HEME");
ed.RenameResidue(j->GetResidue(),"CYS2");
}
}
}
}
}
}
void Modeller::GenerateHISHEMEBonds(ost::mol::EntityHandle& handle){
ost::mol::ResidueHandleList res_list = handle.GetResidueList();
ost::mol::XCSEditor ed = handle.EditXCS();
for(ost::mol::ResidueHandleList::iterator i = res_list.begin();
i != res_list.end(); ++i){
if(i->GetName() == "HEM" || i->GetName() == "HEME"){
ost::mol::AtomHandle fe = i->FindAtom("FE");
if(fe.IsValid()){
ost::mol::AtomHandleList in_reach = handle.FindWithin(fe.GetPos(),2.5);
for(ost::mol::AtomHandleList::iterator j = in_reach.begin();
j != in_reach.end(); ++j){
if(j->GetName() == "NE2" && j->GetResidue().GetName() == "HIS"){
if(!ost::mol::BondExists(fe,*j)){
ed.Connect(fe,*j);
}
ed.RenameResidue(*i,"HEME");
ed.RenameResidue(j->GetResidue(),"HIS1");
}
}
}
}
}
}
void Modeller::GenerateMETHEMEBonds(ost::mol::EntityHandle& handle){
ost::mol::ResidueHandleList res_list = handle.GetResidueList();
ost::mol::XCSEditor ed = handle.EditXCS();
for(ost::mol::ResidueHandleList::iterator i = res_list.begin();
i != res_list.end(); ++i){
if(i->GetName() == "HEM" || i->GetName() == "HEME"){
ost::mol::AtomHandle fe = i->FindAtom("FE");
if(fe.IsValid()){
ost::mol::AtomHandleList in_reach = handle.FindWithin(fe.GetPos(),2.9);
for(ost::mol::AtomHandleList::iterator j = in_reach.begin();
j != in_reach.end(); ++j){
if(j->GetName() == "SD" && j->GetResidue().GetName() == "MET"){
if(!ost::mol::BondExists(fe,*j)){
ed.Connect(fe,*j);
}
ed.RenameResidue(*i,"HEME");
}
}
}
}
}
}
void Modeller::LowerPrecision(ost::mol::EntityHandle& handle){
ost::mol::AtomHandleList atom_list = handle.GetAtomList();
......
......@@ -34,12 +34,6 @@ public:
static void GenerateDisulfidBonds(ost::mol::EntityHandle& handle);
static void GenerateCYSHEMEBonds(ost::mol::EntityHandle& handle);
static void GenerateHISHEMEBonds(ost::mol::EntityHandle& handle);
static void GenerateMETHEMEBonds(ost::mol::EntityHandle& handle);
//may sound pretty stupid...
//But this is necessary if we want to compare our energies with
//the energies calculated by gromacs. When ost writes and entity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment