Victor
 All Data Structures Functions Variables Friends Pages
Ss2.h
1 /* This file is part of Victor.
2 
3  Victor is free software: you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation, either version 3 of the License, or
6  (at your option) any later version.
7 
8  Victor is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with Victor. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 
18 #ifndef __Ss2_H__
19 #define __Ss2_H__
20 
21 #include <AlignmentData.h>
22 #include <Structure.h>
23 #include <Ss2Input.h>
24 
25 namespace Victor { namespace Align2{
26 
32  class Ss2 : public Structure {
33  public:
34 
35  // CONSTRUCTORS:
36 
38  Ss2(SubMatrix *subStr, AlignmentData *ad, Ss2Input *psipred1,
39  Ss2Input *psipred2, double cSs2);
40 
42  Ss2(const Ss2 &orig);
43 
45  virtual ~Ss2();
46 
47 
48  // OPERATORS:
49 
51  Ss2& operator =(const Ss2 &orig);
52 
53 
54  // PREDICATES:
55 
57  virtual double scoringStr(int i, int j);
58 
59 
60  // MODIFIERS:
61 
63  virtual void copy(const Ss2 &orig);
64 
66  virtual Ss2* newCopy();
67 
69  virtual void reverse();
70 
71 
72  protected:
73 
74 
75  private:
76 
77  // ATTRIBUTES:
78 
79  string sec1;
80  string sec2;
81  Ss2Input *psipred1;
82  Ss2Input *psipred2;
83  double cSs2;
84 
85  };
86 
87 }} // namespace
88 
89 #endif
virtual Ss2 * newCopy()
Construct a new "deep copy" of this object.
Definition: Ss2.cc:111
Calculate structural scores with info derived from PSI-PRED.
Definition: Ss2.h:32
virtual void copy(const Ss2 &orig)
Copy orig object to this object ("deep copy").
Definition: Ss2.cc:98
Implement a standard substitution matrix.
Definition: SubMatrix.h:30
virtual double scoringStr(int i, int j)
Calculate structural scores to create matrix values.
Definition: Ss2.cc:62
virtual void reverse()
Reverse template secondary structure.
Definition: Ss2.cc:119
Implement I/O objects for handling PSI-PRED files.
Definition: Ss2Input.h:34
Base class for printing alignments.
Definition: AlignmentData.h:35
Base class for structural scores.
Definition: Structure.h:32
Ss2(SubMatrix *subStr, AlignmentData *ad, Ss2Input *psipred1, Ss2Input *psipred2, double cSs2)
Default constructor.
Definition: Ss2.cc:29
Ss2 & operator=(const Ss2 &orig)
Assignment operator.
Definition: Ss2.cc:46
SubMatrix * subStr
Structural substitution matrix.
Definition: Structure.h:82
virtual ~Ss2()
Destructor.
Definition: Ss2.cc:39