Victor
 All Data Structures Functions Variables Friends Pages
ThreadingProf.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 __ThreadingProf_H__
19 #define __ThreadingProf_H__
20 
21 #include <AlignmentData.h>
22 #include <ProfInput.h>
23 #include <Structure.h>
24 #include <ThreadingInput.h>
25 
26 namespace Victor { namespace Align2{
27 
34  class ThreadingProf : public Structure {
35  public:
36 
37  // CONSTRUCTORS:
38 
41  ProfInput *phd1, ProfInput *phd2, double cThr, double cPrf);
42 
44  ThreadingProf(const ThreadingProf &orig);
45 
47  virtual ~ThreadingProf();
48 
49 
50  // OPERATORS:
51 
54 
55 
56  // PREDICATES:
57 
59  virtual double scoringStr(int i, int j);
60 
61 
62  // MODIFIERS:
63 
65  virtual void copy(const ThreadingProf &orig);
66 
68  virtual ThreadingProf* newCopy();
69 
70 
71  protected:
72 
73 
74  private:
75 
76  // ATTRIBUTES:
77 
78  string seq1;
79  ThreadingInput *thread;
80  ProfInput *phd1;
81  ProfInput *phd2;
82  double cThr;
83  double cPrf;
84 
85  };
86 
87 }} // namespace
88 
89 #endif
virtual ThreadingProf * newCopy()
Construct a new "deep copy" of this object.
Definition: ThreadingProf.cc:133
Calculate structural scores with info derived from threading and PHD.
Definition: ThreadingProf.h:34
Implement a standard substitution matrix.
Definition: SubMatrix.h:30
Implement I/O objects for handling threading files.
Definition: ThreadingInput.h:32
virtual double scoringStr(int i, int j)
Calculate structural scores to create matrix values.
Definition: ThreadingProf.cc:75
ThreadingProf(SubMatrix *subStr, AlignmentData *ad, ThreadingInput *thread, ProfInput *phd1, ProfInput *phd2, double cThr, double cPrf)
Default constructor.
Definition: ThreadingProf.cc:38
virtual void copy(const ThreadingProf &orig)
Copy orig object to this object ("deep copy").
Definition: ThreadingProf.cc:122
Base class for printing alignments.
Definition: AlignmentData.h:35
virtual ~ThreadingProf()
Destructor.
Definition: ThreadingProf.cc:48
Base class for structural scores.
Definition: Structure.h:32
SubMatrix * subStr
Structural substitution matrix.
Definition: Structure.h:82
Implement I/O objects for handling PHD files.
Definition: ProfInput.h:34
ThreadingProf & operator=(const ThreadingProf &orig)
Assignment operator.
Definition: ThreadingProf.cc:59