-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCRF.H
49 lines (43 loc) · 1.6 KB
/
CRF.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
/****************************************************************
GeneZilla-CRF
Copyright (C)2015 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_CRF_H
#include "crf.H"
#include "GZilla.H"
#include "SignalLabelingProfile.H"
/****************************************************************
class CRF
****************************************************************/
class CRF : public GeneZilla {
public:
CRF(const BOOM::String &PROGRAM_NAME,const BOOM::String &VERSION,
EdgeFactory &,int &transcriptId,LabelMatrix &,float priorWeight);
virtual ~CRF();
virtual int main(int argc,char *argv[]);
virtual BOOM::Stack<SignalPtr> * processChunk(const Sequence &seq,
const BOOM::String &seqStr,
const BOOM::String &isoFilename,
const BOOM::String &substrateId,
ostream &osGraph,
bool dumpGraph,
String psaFilename,
Labeling &);
protected:
Labeling priorLabels;
LabelMatrix labelMatrix;
float priorWeight;
Array1D<SignalLabelingProfile> signalLabelingProfiles;
virtual BOOM::Stack<SignalPtr> * mainAlgorithm(const Sequence &,
const BOOM::String &,
ostream &osGraph,
bool dumpGraph,
String psaFilename);
virtual void updateAccumulators(const Sequence &,const BOOM::String &,
int pos,Symbol,char);
void scoreSignalPrior(SignalPtr);
void initSignalLabelingProfiles();
};
#endif