Victor
 All Data Structures Functions Variables Friends Pages
ScoringP2S.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 __ScoringP2S_H__
19 #define __ScoringP2S_H__
20 
21 #include <Profile.h>
22 #include <ScoringScheme.h>
23 
24 namespace Victor { namespace Align2{
25 
31  class ScoringP2S : public ScoringScheme {
32  public:
33 
34  // CONSTRUCTORS:
35 
38  double cSeq);
39 
41  ScoringP2S(const ScoringP2S &orig);
42 
44  virtual ~ScoringP2S();
45 
46 
47  // OPERATORS:
48 
50  ScoringP2S& operator =(const ScoringP2S &orig);
51 
52 
53  // PREDICATES:
54 
56  virtual double scoring(int i, int j);
57 
58 
59  // MODIFIERS:
60 
62  virtual void copy(const ScoringP2S &orig);
63 
65  virtual ScoringP2S* newCopy();
66 
68  virtual void reverse();
69 
70 
71  protected:
72 
73 
74  private:
75 
76  // ATTRIBUTES:
77 
78  string seq1;
79  string seq2;
80  Profile *pro;
81  double cSeq;
82 
83  };
84 
85 }} // namespace
86 
87 #endif
Calculate a frequency profile or PSSM.
Definition: Profile.h:35
virtual double scoring(int i, int j)
Calculate scores to create matrix values.
Definition: ScoringP2S.cc:62
Implement a standard substitution matrix.
Definition: SubMatrix.h:30
ScoringP2S(SubMatrix *sub, AlignmentData *ad, Structure *str, Profile *pro, double cSeq)
Default constructor.
Definition: ScoringP2S.cc:35
Structure * str
Pointer to Structure.
Definition: ScoringScheme.h:80
virtual ScoringP2S * newCopy()
Construct a new "deep copy" of this object.
Definition: ScoringP2S.cc:91
virtual void reverse()
Reverse template sequence.
Definition: ScoringP2S.cc:97
virtual void copy(const ScoringP2S &orig)
Copy orig object to this object ("deep copy").
Definition: ScoringP2S.cc:82
Base class for printing alignments.
Definition: AlignmentData.h:35
SubMatrix * sub
Substitution matrix.
Definition: ScoringScheme.h:78
Base class for structural scores.
Definition: Structure.h:32
AlignmentData * ad
Pointer to AlignmentData.
Definition: ScoringScheme.h:79
Calculate scores for profile to sequence alignment.
Definition: ScoringP2S.h:31
ScoringP2S & operator=(const ScoringP2S &orig)
Assignment operator.
Definition: ScoringP2S.cc:51
Base class for scoring schemes.
Definition: ScoringScheme.h:34
virtual ~ScoringP2S()
Destructor.
Definition: ScoringP2S.cc:44