Victor
 All Data Structures Functions Variables Friends Pages
CrossProduct.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 /*************************************************
19  * sub is BLOSUM62 matrix standard log-odds form *
20  *************************************************/
21 
22 #ifndef __CrossProduct_H__
23 #define __CrossProduct_H__
24 
25 #include <Profile.h>
26 #include <ScoringFunction.h>
27 #include <SubMatrix.h>
28 
29 namespace Victor { namespace Align2{
30 
41  class CrossProduct : public ScoringFunction {
42  public:
43 
44  // CONSTRUCTORS:
45 
47  CrossProduct(SubMatrix *sub, Profile *pro1, Profile *pro2);
48 
50  CrossProduct(const CrossProduct &orig);
51 
53  virtual ~CrossProduct();
54 
55 
56  // OPERATORS:
57 
59  CrossProduct& operator =(const CrossProduct &orig);
60 
61 
62  // PREDICATES:
63 
65  virtual double scoringSeq(int i, int j);
66 
67 
68  // MODIFIERS:
69 
71  virtual void copy(const CrossProduct &orig);
72 
74  virtual CrossProduct* newCopy();
75 
76 
77  protected:
78 
79 
80  private:
81 
82  // ATTRIBUTES:
83 
84  SubMatrix *sub;
85  Profile *pro1;
86  Profile *pro2;
87 
88  };
89 
90 }} // namespace
91 
92 #endif
CrossProduct(SubMatrix *sub, Profile *pro1, Profile *pro2)
Default constructor.
Definition: CrossProduct.cc:44
virtual ~CrossProduct()
Destructor.
Definition: CrossProduct.cc:55
CrossProduct & operator=(const CrossProduct &orig)
Assignment operator.
Definition: CrossProduct.cc:66
virtual double scoringSeq(int i, int j)
Calculate scores to create matrix values.
Definition: CrossProduct.cc:82
Calculate a frequency profile or PSSM.
Definition: Profile.h:35
Implement a standard substitution matrix.
Definition: SubMatrix.h:30
virtual void copy(const CrossProduct &orig)
Copy orig object to this object ("deep copy").
Definition: CrossProduct.cc:106
Calculate scores for profile to profile alignment using sum of pairs method.
Definition: CrossProduct.h:41
virtual CrossProduct * newCopy()
Construct a new "deep copy" of this object.
Definition: CrossProduct.cc:117
Base class for scoring functions.
Definition: ScoringFunction.h:31