-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMddTree.H
49 lines (42 loc) · 1.6 KB
/
MddTree.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**************************************************************
MddTree.H
Copyright (C)2013 William H. Majoros ([email protected]).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
***************************************************************/
#ifndef INCL_MddTree_H
#define INCL_MddTree_H
#include <iostream>
#include "BOOM/String.H"
#include "BOOM/Alphabet.H"
#include "SignalSensor.H"
#include "TreeNode.H"
class MddTree : public SignalSensor
{
TreeNode *root;
SignalSensor *pooledModel;
void load(istream &,GarbageCollector &);
public:
MddTree(const MddTree &,GarbageCollector &,bool revComp);
MddTree(TreeNode *root,SignalSensor *pooledModel,GarbageCollector &,
Strand strand,SignalType,double cutoff,int consensusLength,
int consensusOffset,int contextWindowLength);
MddTree(istream &,GarbageCollector &);
MddTree(const BOOM::String &filename,GarbageCollector &);
virtual ~MddTree();
void computeSubmodels(ModelBuilder &,ModelType,SignalType,
int consensusOffset,int consensusLength,
int contextWindowLength);
int getMaxDepth();
void printOn(ostream &) const;
void describe(ostream &);
virtual double getLogP(const Sequence &,const BOOM::String &,int begin);
virtual SignalSensor *reverseComplement();
virtual bool save(const BOOM::String &filename);
virtual bool save(ostream &os);
virtual SignalSensor *clone() const;
virtual void useLogOdds(SignalSensor &nullModel) {}
virtual void useLogOdds_anonymous(ContentSensor &nullModel) {}
};
ostream &operator<<(ostream &,MddTree &);
#endif