/*************************************************************************** moveset_mod.cpp - description ------------------- begin : Thu Jan 8 01:07:10 2004 copyright : (C) 2002 by Cavalli Andrea email : cavalli@bioc.unizh.ch **************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include //#include using namespace Almost; template<> inline string to_string(const Molecules & molecules){ return ""; } template<> inline string to_string(const MDB & mdb){ return ""; } template<> inline string to_string(const MoveSet & ){ return ""; } template inline string to_string(const MoveSet & ){ return ""; } template<> inline string to_string(const BondRotation & ){ return ""; } template inline string to_string(const BondRotation & ){ return ""; } template<> inline string to_string(const Translation & ){ return ""; } template<> inline string to_string(const Rotation & ){ return ""; } template<> inline string to_string(const ScrambleMove & ){ return ""; } template<> inline string to_string(const Seed & ){ return ""; } template<> inline string to_string(const Fragment & ){ return ""; } template<> inline string to_string(const LocalFragment & ){ return ""; } template<> inline string to_string(const LocalFragment & ){ return ""; } template<> inline string to_string(const Fragment9 & ){ return ""; } template<> inline string to_string(const SideChainMover & ){ return ""; } template<> inline string to_string(const BackBoneMover & ){ return ""; } template<> inline string to_string(const LocalBBMover & ){ return ""; } template<> inline string to_string(const HybridC19 & ){ return ""; } template<> inline string to_string(const CaAngle & ){ return ""; } template<> inline string to_string(const Coor & ){ return ""; } // inline string to_string(const DCDOStream & ){ // return ""; // } // Coor mols_coor(const Molecules & molecules){ // Coor coor; // coor.resize(molecules.atom_size()); // for(int i=0; i & frag9){ Coor coor(molecules); frag9.apply(coor); for(int i=0;i,ArgList1 >(mod.self(),"moveset") .def_method("add_translation", &MoveSet::add_translation) .def_method("add_rotation", &MoveSet::add_rotation) .def_method("add_backbone", &MoveSet::add_backbone) .def_method("add_localbb", &MoveSet::add_localbb) .def_method("add_sidechain", &MoveSet::add_sidechain) .def_method("add_scramble", &MoveSet::add_scramble) .def_method("add_hybridc19", &MoveSet::add_hybridc19) .def_method("add_seed", &MoveSet::add_seed) .def_method("add_fragment", &MoveSet::add_fragments) .def_method("add_fragment9", &MoveSet::add_fragments9) .def_method("add_caangle", &MoveSet::add_caangle) .def_method("clear",&MoveSet::clear); typedef void (BondRotation::*Applay_Coor)(Coor & coor, double angle, int code, bool right) const; typedef void (BondRotation::*Applay_Vect)(vector & coor, double angle, int code, bool right) const; Applay_Coor applay_coor = &BondRotation::apply; Applay_Vect applay_Vect = &BondRotation::apply; Class,ArgList2 >(mod.self(), "bond_rotation") .def_method("apply",applay_coor) .def_method("apply_vect",applay_coor); // .def_method("set_dihedral",&BondRotation::set_dihedral); Class,ArgList5< const Molecules & , int , double, int, int> >(mod.self(),"translation"); Class,ArgList5< const Molecules & , int , double, int, int> >(mod.self(),"rotation"); Class,ArgList5< const Molecules & , int , double, int, int> >(mod.self(),"scramble"); Class,ArgList6< const Molecules & , int , const BondRotation &, double, int, int> >(mod.self(),"sidechain"); Class,ArgList5< const Molecules & , const BondRotation &, double, int, int> >(mod.self(),"backbone"); Class,ArgList3< const Molecules & , const BondRotation &, string> >(mod.self(),"seed"); Class,ArgList4< const Molecules & , const BondRotation &, int, string> >(mod.self(),"fragment"); Class,ArgList4< const Molecules & , const BondRotation &, int, string> >(mod.self(),"fragment9"); Class,ArgList4< const Molecules & , const BondRotation &, int, string> >(mod.self(),"local_fragment"); Class,ArgList4< const Molecules & , const BondRotation &, int, string> >(mod.self(),"local_fragment9") .def_method("add_range",&LocalFragment::add_range) ; Class,ArgList6< const Molecules & , const BondRotation &, double, double, int, int> >(mod.self(),"local") .def_method::*)(Coor &) >("apply",&LocalBBMover::apply) .def_method("asym",&LocalBBMover::asym) .def_method("dw",&LocalBBMover::torsions_incr) ; // Class,ArgList2 & > >(mod.self(),"hybridc19"); // Class >(mod.self(),"c19_options") // .def_attribute("rdie",&HybridC19Options::rdie) // .def_attribute("solv",&HybridC19Options::solv) // .def_attribute("solv_ignore_h",&HybridC19Options::solv_ignore_h) // .def_attribute("vdw_shift",&HybridC19Options::vdw_shift) // .def_attribute("elec_shift",&HybridC19Options::elec_shift) // .def_attribute("cut_on",&HybridC19Options::cut_on) // .def_attribute("cut_off",&HybridC19Options::cut_off) // .def_attribute("cut_nb",&HybridC19Options::cut_nb) // .def_attribute("e_zero",&HybridC19Options::e_zero) // .def_attribute("e_14",&HybridC19Options::e_14) // .def_attribute("eps",&HybridC19Options::eps) // .def_attribute("r_water",&HybridC19Options::r_water) // .def_attribute("const_file",&HybridC19Options::const_file) // .def_attribute("shake_mode",&HybridC19Options::shake_mode) // .def_attribute("shake_tol",&HybridC19Options::shake_tol) // .def_attribute("vect",&HybridC19Options::vect) // .def_attribute("temp",&HybridC19Options::temp) // .def_attribute("time_step",&HybridC19Options::time_step) // .def_attribute("nsteps",&HybridC19Options::nsteps) // .def_attribute("nupdate",&HybridC19Options::nupdate) // .def_attribute("seed",&HybridC19Options::seed); // Class >(mod.self(),"coor") // .def_method("copy",&Coor::copy); // Class >(mod.self(),"dcdostream") // .def_method("close",&DCDOStream::close) // .def_method("write",&DCDOStream::write); // mod.def_function("mols_coor","Return a Coor structure with the coordinates of the molecule.",mols_coor); mod.def_function("test_local","Computes mead torsion increment for local backbone moves.",test_local); } }