| 1 |
#ifndef SNOWMAN_FRACTIONS_H__ |
| 2 |
#define SNOWMAN_FRACTIONS_H__ |
| 3 |
|
| 4 |
#include "SeqLib/GenomicRegionCollection.h" |
| 5 |
#include <string> |
| 6 |
|
| 7 |
namespace SeqLib { |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
class FracRegion : public SeqLib::GenomicRegion { |
| 14 |
|
| 15 |
public: |
| 16 |
|
| 17 |
FracRegion() {} |
| 18 |
|
| 19 |
FracRegion(const std::string& c, const std::string& p1, const std::string& p2, bam_hdr_t * h, const std::string& f); |
| 20 |
|
| 21 |
friend std::ostream& operator<<(std::ostream& out, const FracRegion& f); |
| 22 |
|
| 23 |
double frac; |
| 24 |
}; |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
class Fractions { |
| 29 |
|
| 30 |
public: |
| 31 |
|
| 32 |
Fractions() {} |
| 33 |
|
| 34 |
size_t size() const; |
| 35 |
|
| 36 |
void readFromBed(const std::string& file, bam_hdr_t * h) ; |
| 37 |
|
| 38 |
SeqLib::GenomicRegionCollection<FracRegion> m_frc; |
| 39 |
|
| 40 |
private: |
| 41 |
|
| 42 |
}; |
| 43 |
|
| 44 |
} |
| 45 |
|
| 46 |
#endif |