6 #ifndef BALL_SCORING_COMMON_GRIDBASEDSCORING_H
7 #define BALL_SCORING_COMMON_GRIDBASEDSCORING_H
48 void defineGridSet(
AtomContainer* sys,
Vector3& angstroem,
double out_of_grid_penalty,
bool enforce_grid_boundaries,
double resolution,
double interaction_no_scale = 1);
52 void defineGridSet(
AtomContainer* sys,
double out_of_grid_penalty,
bool enforce_grid_boundaries,
double resolution,
double interaction_no_scale = 1);
54 void defineFlexibleResiduesGridSet();
59 void setAtomTypeNames(std::set<String>& types);
62 void precalculateGrids(
bool ony_flexRes_grids =
false);
65 void saveGridSetsToFile(
String file,
String receptor_name);
68 void readAdditionalGridSetFromFile(
String file);
71 void replaceGridSetFromFile(
String file);
75 void loadFlexibleResidueScoreGrids(std::list<std::pair<const Residue*, const Rotamer*> > residue_list);
77 void setupReferenceLigand();
84 void setCombineOperation(
int i);
87 int getNoNeighboringReceptorAtoms();
89 std::vector<ScoreGridSet*>* getScoreGridSets();
91 void validateGridSets();
107 void setup(
Size no_gridSets);
114 double calculateGridScore();
119 void defineReceptorGridSet(
Vector3& origin,
Vector3& size,
double out_of_grid_penalty,
bool enforce_grid_boundaries,
double resolution = 0.5,
double interaction_no_scale = 1);
123 std::map<String, int>* getAtomTypesMap();
127 virtual void setAtomType(
Atom* atom,
const String& type_name);
130 String getGridAtomTypeName(
int grid_id);
144 virtual void updatePrecalculatedScore(
Size set) = 0;
164 #endif // BALL_SCORING_COMMON_GRIDBASEDSCORING_H
std::vector< double > no_neighbors
static double SCOREGRID_RESOLUTION
static bool SCOREGRID_INTERPOLATION
std::map< const Residue *, ScoreGridSet * > flex_gridsets_
static const char * SCOREGRID_INTERPOLATION
double scoregrid_resolution_
std::vector< BALL::ScoreGridSet * > grid_sets_
std::map< String, int > atom_types_map_
bool scoregrid_interpolation_
std::vector< double > gridSet_scores
std::vector< Size > no_out_of_grid
GridSetsResult gridsets_result_
static const char * SCOREGRID_RESOLUTION