-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContentRegions.H
More file actions
33 lines (29 loc) · 1.02 KB
/
ContentRegions.H
File metadata and controls
33 lines (29 loc) · 1.02 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
/****************************************************************
ContentRegions.H
Copyright (C)2015 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_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);
void sort();
};
ostream &operator<<(ostream &,const ContentRegions &);
#endif