-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContentSensors.H
More file actions
38 lines (34 loc) · 1.16 KB
/
ContentSensors.H
File metadata and controls
38 lines (34 loc) · 1.16 KB
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
/****************************************************************
ContentSensors.H
Copyright (C)2016 William H. Majoros (martiandna@gmail.com).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#ifndef INCL_ContentSensors_H
#define INCL_ContentSensors_H
#include <iostream>
#include "BOOM/Set.H"
#include "BOOM/String.H"
#include "ContentSensor.H"
#include "PrefixSumArray.H"
using namespace std;
using namespace BOOM;
class ContentSensors {
public:
ContentSensors();
virtual ~ContentSensors();
void setSensor(ContentType,ContentSensor *);
void setSpliceBackgroundModel(ContentSensor *);
ContentSensor *getSpliceBackground();
const ContentSensor *getSensor(ContentType) const;
PrefixSumArray &getPSA(ContentType);
double score(ContentType,int begin,int end) const;
protected:
ContentSensor *exonSensor;
ContentSensor *intronSensor;
ContentSensor *intergenicSensor;
ContentSensor *spliceBackgroundModel;
PrefixSumArray exonPSA, intronPSA, intergenicPSA;
ContentType simplifyContentType(ContentType type);
};
#endif