This file is indexed.

/usr/include/BALL/DOCKING/GENETICDOCK/evolutionaryDocking.h is in libball1.4-dev 1.4.3~beta1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// ----------------------------------------------------
// $Maintainer: Marcel Schumann $
// $Authors: Jan Fuhrmann, Marcel Schumann $
// ----------------------------------------------------

#ifndef BALL_DOCKING_GENETICDOCK_EVOLUTIONARYDOCKING_H
#define BALL_DOCKING_GENETICDOCK_EVOLUTIONARYDOCKING_H

#ifndef BALL_DATATYPE_REGULARDATA3D_H
#include <BALL/DATATYPE/regularData3D.h>
#endif

#ifndef BALL_KERNEL_SYSTEM_H
#include <BALL/KERNEL/system.h>
#endif

#ifndef BALL_DOCKING_COMMON_DOCKINGALGORITHM_H
#include <BALL/DOCKING/COMMON/dockingAlgorithm.h>
#endif

#include <BALL/SCORING/COMMON/scoringFunction.h>

namespace BALL
{
  class GeneticAlgorithm;

  class DockProblem;


  /**
     class EvolutionaryDocking
     This class is derived from class DockingAlgorithm.
     small ligand docking algorithm via a genetic Algorithm.
  */
  class BALL_EXPORT EvolutionaryDocking : public DockingAlgorithm
    {
    public:

     struct Option
      {
	static const String MAX_ITERATIONS;
	static const String POPULATION_NUMBER;
	static const String INITIAL_POPULATION;
	static const String POPULATION;
	static const String SURVIVORS;
	static const String MUTATION_RATE;
	static const String MUTATION_SAVE;
	static const String CONV_ITERATIONS;
	static const String CONV_VALUE;
	static const String CONV_START;
	static const String BEST_NUM;
	static const char* SCORING_TYPE;
      };

      struct Default
      {
	static const int MAX_ITERATIONS;
	static const int POPULATION_NUMBER;
	static const int INITIAL_POPULATION;
	static const int POPULATION;
	static const int SURVIVORS;
	static const double MUTATION_RATE;
	static const int MUTATION_SAVE;
	static const int CONV_ITERATIONS;
	static const double CONV_VALUE;
	static const int CONV_START;
	static const int BEST_NUM;
	static const String SCORING_TYPE;
      };


	EvolutionaryDocking(System &system1, System &system2, Options& new_options);

	EvolutionaryDocking(System& receptor, System& ligand, string config_file);

      /** destructor
       */
      ~EvolutionaryDocking();

      /** The setup routines.
       */
      virtual void setup(System& ligand, BALL::ScoringFunction* sf, Options& new_options);

      virtual void setup(System& ligand, BALL::ScoringFunction* sf);

      void setup(System& receptor, System& ligand, Options& new_options);

      /** Start the main loop of the algorithm.
       */
      void start();

      /** docks the given ligand and returns the score for the best conformation */
      double dockLigand(AtomContainer& ligand, bool verbose = 0);

      /** return the overall docking progress as a percentage
       */
      float getProgress() const;

      /** true if new ligand position has to be drawn
       */
      bool redraw();

      Vector3& getReferenceLigandCenter();

      /** return ranked conformations.
       */
   //   ConformationSet getConformationSet(Index total_number = 0);

      /** stores the default options of this algorithms in the given Option object */
      static void getDefaultOptions(Options& options);


    protected:

     // virtual const AtomContainer& getIntermediateResult_()
	//throw();

      /** Free all allocated memory and destroys the options and results
       */
      void destroy_();

      void applyBestConformation();

      /** optimization method
       */
      GeneticAlgorithm* ga_;

      /** mapping class for docking
       */
      DockProblem* dp_;

      /** the geometrical center of the reference ligand */
      Vector3 reference_center_;

    };
}

#endif /* BALL_DOCKING_GENETICDOCK_EVOLUTIONARYDOCKING_H */