BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
secondaryStructureProcessor.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_STRUCTURE_SECONDARYSTRUCTUREPROCESSOR_H
6 #define BALL_STRUCTURE_SECONDARYSTRUCTUREPROCESSOR_H
7 
8 #ifndef BALL_COMMON_H
9 #include <BALL/common.h>
10 #endif
11 
12 #ifndef BALL_CONCEPT_COMPOSITE_H
13 # include <BALL/CONCEPT/composite.h>
14 #endif
15 
16 #include <vector>
17 
18 namespace BALL
19 {
20  class SecondaryStructure;
21 
39  : public UnaryProcessor<Composite>
40  {
41  public:
42 
48 
51  virtual Processor::Result operator() (Composite& composite);
54 
55  protected:
56 
58  void compute_();
59 
60  // helper function for finish()
61  char setSecondaryStructureType_(SecondaryStructure* ss, char type);
62 
63  bool testString_(const String& s, Size offset, Size offset_2);
64  bool testString2_(const String& s, Size offset);
65  bool testString3_(const String& s, Size offset, char x);
66 
67  void insertTurn_(int turn, int position);
68  void changeAllXToY_(char X, char Y, String& target);
69 
70  // matrix to save the possible HBondPairs
71  std::vector<std::vector<Position> > HBonds_;
72 
73  //vector to save the bridges
74  std::vector<std::vector<int> > posbridges_;
75 
81  };
82 
83 } //namespace BALL
84 
85 #endif // BALL_STRUCTURE_SECONDARYSTRUCTUREPROCESSOR_H
std::vector< std::vector< Position > > HBonds_
Secondary structure extraction from 3D structure.
std::vector< std::vector< int > > posbridges_
#define BALL_EXPORT
Definition: COMMON/global.h:50