-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathContentRegions.H
32 lines (28 loc) · 1.01 KB
/
ContentRegions.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
/****************************************************************
ContentRegions.H
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_ContentRegions_H
#define INCL_ContentRegions_H
#include <iostream>
#include "BOOM/Vector.H"
#include "BOOM/GffTranscript.H"
#include "ContentRegion.H"
using namespace std;
using namespace BOOM;
class ContentRegions {
public:
ContentRegions(const GffTranscript &,int sequenceLength);
const Vector<ContentRegion> &asVector();
bool findJunction(int pos,const ContentRegion *&preceding,
const ContentRegion *&following) const;
ContentRegion *regionOverlapping(int pos) const;
void printOn(ostream &) const;
protected:
Vector<ContentRegion> regions;
void init(const GffTranscript &,int seqLen);
};
ostream &operator<<(ostream &,const ContentRegions &);
#endif