-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBasicStatsCollector.h
42 lines (32 loc) · 1.38 KB
/
BasicStatsCollector.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
#ifndef BASICSTATSCOLLECTOR_H
#define BASICSTATSCOLLECTOR_H
#pragma once
#include "AbstractStatCollector.h"
#include "AbstractChangeMonitor.h"
namespace BamstatsAlive {
static std::string const kTotalReads = "total_reads";
static std::string const kPairedEndReads = "paired_end_reads";
static std::string const kProperPairs = "proper_pairs";
static std::string const kMappedReads = "mapped_reads";
static std::string const kBothMatesMapped = "both_mates_mapped";
static std::string const kForwardStrands = "forward_strands";
static std::string const kReverseStrands = "reverse_strands";
static std::string const kFirstMates = "first_mates";
static std::string const kSecondMates = "second_mates";
static std::string const kSingletons = "singletons";
static std::string const kFailedQC = "failed_qc";
static std::string const kDuplicates = "duplicates";
static std::string const kLastReadPos = "last_read_position";
typedef std::map<std::string, unsigned int> StatMapT;
typedef std::map<std::string, AbstractChangeMonitor<double> *> ChangeMonitorMapT;
class BasicStatsCollector : public AbstractStatCollector {
protected:
StatMapT _stats;
ChangeMonitorMapT _monitors;
virtual void processAlignmentImpl(const BamTools::BamAlignment& al, const BamTools::RefVector& refVector);
virtual void appendJsonImpl(json_t * jsonRootObj);
public:
BasicStatsCollector();
};
}
#endif