5#ifndef BALL_STRUCTURE_ROTAMERLIBRARY_H
6#define BALL_STRUCTURE_ROTAMERLIBRARY_H
8#ifndef BALL_STRUCTURE_FRAGMENT_DB_H
12#ifndef BALL_STRUCTURE_RESIDUEROTAMERSET_H
16#ifndef BALL_DATATYPE_HASHMAP_H
17 #include <BALL/DATATYPE/hasMap.h>
HashMap class based on the STL map (containing serveral convenience functions).
Size getNumberOfRotamers() const
Return total number of rotamers.
void addRotamer(const String &name, const Rotamer &rotamer, Size number_of_torsions, Index phi, Index psi)
adds rotamer with specific phi/psi backbone torsion
void sort()
method to sort the Rotamers of each ResidueRotamerSet descendingly according to the probability
Size getNumberOfRotamerSets() const
returns the number of rotamer sets
static const String DEFAULT_LIBRARY
Rotamer library used when calling the default constructor.
Size step_width_
discretization step width of the torsion angles
void setBackboneDependent(bool dependent)
sets whether the rotamers are backbone dependent or not
static const String DEFAULT_FRAGMENT_DB
Fragment DB used when calling the default constructor.
bool validate()
method to test the validity of this library, typically called after the building (see SCWRLLibraryFil...
HashMap< String, ResidueRotamerSet > bb_indep_sets_
Contains the available variants (name, rotamer set) in case of bb indep.
HashMap< Index, HashMap< Index, HashMap< String, ResidueRotamerSet > > > bb_dep_sets_
Contains the available variants (phi, psi, name, rotamer set) in case of bb dep.
bool isBackboneDependent() const
returns true if the rotamers are backbone dependent
ResidueRotamerSet * getRotamerSet(const String &name)
Return the residue set of the residue name.
bool backbone_dependent_
flag which is true when the library has backbone dependent rotamers
Index getNearestBackboneTorsion_(double angle) const
bool hasRotamers(const String &name) const
returns true if the library contains rotamers with this name
FragmentDB fragment_db_
fragment db used in this class
#define BALL_CREATE(name)