Commit 50a90856 authored by Mathieu Giraud's avatar Mathieu Giraud

core/windows.{h,cpp}: store read length stats for each window

parent 996e308c
......@@ -142,6 +142,7 @@ void WindowsStorage::add(junction window, Sequence sequence, int status, Germlin
seqs_by_window[window].add(sequence);
status_by_window[window][status]++;
stats_by_window[window].insert(sequence.sequence.length());
germline_by_window[window] = germline;
}
......
......@@ -21,6 +21,7 @@
#include "read_storage.h"
#include "read_score.h"
#include "representative.h"
#include "stats.h"
#define NB_BINS 15
#define MAX_VALUE_BINS 500
......@@ -32,6 +33,7 @@ typedef string junction ;
class WindowsStorage {
private:
map<junction, BinReadStorage > seqs_by_window;
map<junction, Stats > stats_by_window;
map<junction, vector<int> > status_by_window;
map<junction, Germline* > germline_by_window;
map<string, string> windows_labels;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment