Victor
 All Data Structures Functions Variables Friends Pages
Panchenko.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 __Panchenko_H__
19 #define __Panchenko_H__
20 
21 #include <Profile.h>
22 #include <PssmInput.h>
23 #include <ScoringFunction.h>
24 
25 namespace Victor { namespace Align2{
26 
38  class Panchenko : public ScoringFunction {
39  public:
40 
41  // CONSTRUCTORS:
42 
44  Panchenko(Profile *pro1, Profile *pro2, PssmInput *pssm1, PssmInput *pssm2);
45 
47  Panchenko(const Panchenko &orig);
48 
50  virtual ~Panchenko();
51 
52 
53  // OPERATORS:
54 
56  Panchenko& operator =(const Panchenko &orig);
57 
58 
59  // PREDICATES:
60 
62  virtual double scoringSeq(int i, int j);
63 
65  int returnAaColumnTarget(int i);
66 
68  int returnAaColumnTemplate(int i);
69 
70 
71  // MODIFIERS:
72 
74  virtual void copy(const Panchenko &orig);
75 
77  virtual Panchenko* newCopy();
78 
79 
80  protected:
81 
82 
83  private:
84 
85  // ATTRIBUTES:
86 
87  Profile *pro1;
88  Profile *pro2;
89  PssmInput *pssm1;
90  PssmInput *pssm2;
91 
92  };
93 
94 }} // namespace
95 
96 #endif
virtual void copy(const Panchenko &orig)
Copy orig object to this object ("deep copy").
Definition: Panchenko.cc:153
virtual double scoringSeq(int i, int j)
Calculate scores to create matrix values.
Definition: Panchenko.cc:77
virtual ~Panchenko()
Destructor.
Definition: Panchenko.cc:50
Calculate a frequency profile or PSSM.
Definition: Profile.h:35
int returnAaColumnTemplate(int i)
Return the number of different aminoacids in column i.
Definition: Panchenko.cc:130
Panchenko(Profile *pro1, Profile *pro2, PssmInput *pssm1, PssmInput *pssm2)
Default constructor.
Definition: Panchenko.cc:41
int returnAaColumnTarget(int i)
Return the number of different aminoacids in column i.
Definition: Panchenko.cc:109
Implement I/O objects for handling BLAST PSSM (Position Specific Score Matrix).
Definition: PssmInput.h:33
virtual Panchenko * newCopy()
Construct a new "deep copy" of this object.
Definition: Panchenko.cc:165
Base class for scoring functions.
Definition: ScoringFunction.h:31
Panchenko & operator=(const Panchenko &orig)
Assignment operator.
Definition: Panchenko.cc:61
Calculate scores for profile to profile alignment using Panchenko method.
Definition: Panchenko.h:38