Debian Codegraph @

include/BALL/DOCKING/COMMON/structurePreparer.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4
5
6 #ifndef BALL_DOCKING_COMMON_STRUCTUREPREPARER_H
7 #define BALL_DOCKING_COMMON_STRUCTUREPREPARER_H
8
9 #ifndef BALL_KERNEL_ATOMCONTAINER_H
10 #include <BALL/KERNEL/atomContainer.h>
11 #endif
12
13 #ifndef BALL_STRUCTURE_ADDHYDROGENSPROCESSOR_H
14 #include <BALL/STRUCTURE/addHydrogenProcessor.h>
15 #endif
16
17 #include <set>
18
19 namespace BALL
20 {
21 class BALL_EXPORT StructurePreparer
22 {
23 public:
24
25 StructurePreparer(String type="", bool ignore = 0);
26
27 /** tries to assign the exact atom types, as defined in 'iniFile', to all atoms of 'at' */
28 void assignAtomTypes(AtomContainer* at, String iniFile, String AtomType_file="");
29
30 /** tries to assign simplied atom types based mainly on element symbols. \n @param 'iniFile' is needed to obtain the corresponding IDs (force field dependend AtomType of type int) for each of these simple type names */
31 void assignSimpleAtomTypes(AtomContainer* at, String iniFile);
32
33 /** assign Piecewise Linear Potential AtomTypes to all atoms of the given AtomContainer */
34 void assignPLPAtomTypes(AtomContainer* at);
35
36 void assignMMFF94AtomTypes(AtomContainer* at);
37
38 void setScoringType(String type);
39
40 /** assign all partial charges#
41 @param overwrite_mode 0 = no overwriting of charges, 1 = overwrite all charges, 2 = automatic (overwrite all charges only if most atoms do not have a charge yet) */
42 void assignCharges(AtomContainer* at, int overwrite_mode);
43
44 /** assigns charges to a protein based on the charges template section of the specified parameter file
45 @param overwrite_mode 0 = no overwriting of charges, 1 = overwrite all charges, 2 = automatic (overwrite all charges only if most atoms do not have a charge yet) */
46 bool assignProteinCharges(AtomContainer* at, String parameterFile, int overwrite_mode);
47
48 void buildBonds(AtomContainer* at);
49
50 void saturate(AtomContainer* at);
51
52 void selectHeavyAtoms(AtomContainer* at);
53
54 /** run all of the above */
55 void prepare(AtomContainer* at, String parameterFile, String AtomType_file="");
56
57 void setSimpleAtomTypes(std::set<String>& new_types);
58
59 const std::set<String>* getSimpleAtomTypes();
60
61 private:
62
63 bool setIonStandardCharge(Atom* atom);
64
65 bool use_mmff94_;
66
67 /** if == 1, unassigned atom types are ignored.\n
68 else an exception is thrown if an atom type could not be assigned for at least one atom. */
69 bool ignore_unassigned_;
70
71 /** determines whether Piecewise Linear Potential AtomTypes are to be used */
72 bool use_PLP_;
73
74 std::set<String> simple_atom_types_;
75 };
76 }
77
78 #endif // BALL_DOCKING_COMMON_STRUCTUREPREPARER_H