Commit 6d9e8fb1 authored by Mikael Salson's avatar Mikael Salson

windows.cpp: stats are now directly provided by BinReadStorage

parent 937ad45b
......@@ -25,7 +25,7 @@ string WindowsStorage::getLabel(junction window) {
float WindowsStorage::getAverageLength(junction window) {
assert(hasWindow(window));
return stats_by_window[window].getAverage();
return seqs_by_window[window].getAverageScore();
}
Germline *WindowsStorage::getGermline(junction window) {
......@@ -148,7 +148,6 @@ 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;
}
......
......@@ -33,7 +33,6 @@ 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