/*************************************************************************** topos_mod.cpp - description ------------------- begin : Thu Jul 12 19:25:13 2007 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 using namespace Almost; template<> inline string to_string(const Topos::ZScore &){ return ""; } template<> inline string to_string(const Topos::ResidueDataTriple &){ return ""; } extern "C" { void init_topos(){ //declarations here Module mod = Module("topos","Torsion Angle Prediction from Chemical Shifts"); mod.def_function("read_database","Reads binary database",Topos::read_database); mod.def_function("read_ascii_database", "Reads binary database",Topos::read_ascii_database); mod.def_function("topos","Run topos",Topos::topos); mod.def_function("bin2ascii","Convert binary to ascii db",Topos::bin2ascii); mod.def_function("maketriple","Convert mgr to triple db",Topos::maketriple); mod.def_function("database","get database",Topos::database); Class & > >(mod.self(), "zscore") .def_method("zscore",&Topos::ZScore::zscore) .def_method("zscore2",&Topos::ZScore::zscore2) ; } }