5 #ifndef BALL_SCORING_COMMON_SCORINGFUNCTION_H
6 #define BALL_SCORING_COMMON_SCORINGFUNCTION_H
152 virtual void clear();
167 void setMaximumNumberOfErrors(
Size nr);
170 Size getMaximumNumberOfErrors()
const;
205 void setIntercept(
double intercept);
208 double getIntercept()
const;
244 void removeComponent(
const String& name);
257 void setCoefficient(
const String& name,
float coefficient);
264 float& coefficient)
const;
270 bool getCoefficient(
const String& name,
float& coefficient)
const;
283 double calculateScore();
301 double getExpEnergyStddev();
303 void enableStoreInteractionsOnlyForPhContraints();
308 String convertTime(
double seconds);
313 virtual void update();
318 virtual double updateScore();
324 virtual void printResult(
bool detail = 0);
326 void getScoreContributions(vector<double>& score_contributions, vector<String>& names);
331 static void getDefaultOptions(
Options& options);
342 void enableStoreInteractions(
bool b =
true);
349 int getBurialDepthScale();
351 String valueToString(
double value);
357 void unsetTrainingParameters();
363 void setNormalizationParameters(
double stddev,
double mean);
370 const Vector3& getLigandCenter()
const;
372 double getLigandRadius()
const;
378 bool storeInteractionsEnabled();
384 virtual int getNoNeighboringReceptorAtoms();
389 int getNoLigandAtoms();
407 void createStaticLigandFragments();
409 const vector<Bond*>* getRotatableLigandBonds()
const;
411 const vector<StaticLigandFragment*>* getStaticLigandFragments()
const;
413 bool hasFlexibleResidues();
415 void setFlexibleResidues(
const std::set<Residue*>& flexible_residues);
431 void resetFlexibleResidues();
438 Size countNeighboringReceptorAtoms(
const Atom* atom,
439 double distance_threshold,
441 int* number_of_overlaps = 0)
const;
443 void resetResiduePositions(
Residue* residue, list<Vector3>& old_positions);
450 const std::map<Atom*, int>* getAtomFragmentMap();
482 void setName(
String name);
497 void setupFlexibleResidues_();
504 virtual void setupReferenceLigand();
522 AtomPairVector* createNonbondedPairVector(
HashGrid3<Atom*>* hashgrid,
int& overlaps,
bool rec_lig,
bool check_fragments = 0,
bool intra_fragment = 0);
532 AtomPairVector* createLigandNonbondedPairVector(
bool intra_fragment,
int& overlaps);
534 bool hasPharmacophoreConstraints_();
539 void clearStoredInteractions_();
544 double calculateConstraintsScore();
550 void enableInteractionComponents_(
const list<String>& type_names);
552 virtual double getES();
557 void enableAllComponents_();
564 void fetchStaticLigandFragment(
Atom* a1,
int index);
570 int countCovalentBonds(
const Atom* atom,
int threshold = -1);
577 virtual void createAllLigandNonBondedPairs();
583 virtual double calculateStaticLigandFragmentEnergy();
588 bool isPeptideBond(
const Bond* bond)
const;
824 #endif // BALL_SCORING_COMMON_SCORINGFUNCTION_H
list< Constraint * > constraints
double nonbonded_cutoff_2_
vector< StaticLigandFragment * > static_ligand_fragments_
static const char * ALLOWED_INTERMOL_OVERLAP
static double CONFORMATION_SCALE
Size max_number_of_errors_
static double ALLOWED_INTRAMOL_OVERLAP
int misplaced_ligand_atoms_
vector< double > refArea_penalties
AtomContainer * receptor_
static const char * CONFORMATION_SCALE
bool use_static_lig_fragments_
double allowed_intramolecular_overlap_
double allowed_intermolecular_overlap_
static double NONBONDED_CUTOFF
static const char * USE_STATIC_LIG_FRAGMENTS
static const char * VERBOSITY
double ligand_conformation
static const char * ALL_LIG_NONB_PAIRS
static int BURIAL_DEPTH_SCALE
int hashgrid_search_radius_
static const char * HASHGRID_SIZE
AtomPairVector * all_ligand_nonbonded_
static const Size VERBOSITY
HashGrid3< Atom * > * all_residues_hashgrid_
static const char * IGNORE_H_CLASHES
static const char * BURIAL_DEPTH_SCALE
static const Size BASE_FUNCTION_TYPE
std::set< Residue * > flexible_residues_
static bool USE_STATIC_LIG_FRAGMENTS
vector< Bond * > rotatable_ligand_bonds_
static const char * NONBONDED_CUTOFF
HashGrid3< Atom * > * static_residues_hashgrid_
static double ALLOWED_INTERMOL_OVERLAP
list< list< Vector3 > > flexres_org_positions_
static bool ALL_LIG_NONB_PAIRS
double conformation_scale_
static const char * ALLOWED_INTRAMOL_OVERLAP
int neighboring_target_atoms_
double neighbor_cutoff_2_
static const char * HASHGRID_RESOLUTION
std::list< std::pair< Atom *, Atom * > > AtomPairList
vector< ScoringComponent * > scoring_components_
bool store_interactions_phC_only_
static const char * BASE_FUNCTION_TYPE
std::map< Atom *, int > atoms_to_fragments_
static double HASHGRID_RESOLUTION
ScoringBaseFunction * base_function_
HashGrid3< Atom * > * hashgrid_
HashGrid3< Atom * > * flexible_residues_hashgrid_
static bool IGNORE_H_CLASHES
int ligand_intramol_overlaps_
double exp_energy_stddev_
std::vector< std::pair< Atom *, Atom * > > AtomPairVector
double static_ligand_energy_
HashSet< const Atom * > unassigned_atoms_