Commit ab937846 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-a/3387-free-memory-when-objects-become-useless-in-windows' into 'dev'

feature-a/3387-free-memory-when-objects-become-useless-in-windows into dev

Closes #3387

See merge request !253
parents a44ded69 bfad178f
Pipeline #33781 passed with stages
in 53 seconds
......@@ -262,6 +262,9 @@ json WindowsStorage::computeDiversity(int nb_segmented) {
return jsonDiversity;
}
void WindowsStorage::clearSequences(){
seqs_by_window.clear();
}
json WindowsStorage::sortedWindowsToJson(map <junction, json> json_data_segment, int max_json_output) {
json windowsArray;
......
......@@ -220,7 +220,11 @@ class WindowsStorage {
ostream &printSortedWindows(ostream &os);
json sortedWindowsToJson(map<junction, json> json_data_segment, int max_json_output);
/**
* Clear the seqs_by_window map.
*/
void clearSequences();
/**
* Display a window with its in size in a somewhat FASTA format
*/
......
......@@ -1512,6 +1512,7 @@ int main (int argc, char **argv)
//json->add("links", jsonLevenshtein);
//out_json << json->toString();
windowsStorage->clearSequences();
json jsonSortedWindows = windowsStorage->sortedWindowsToJson(json_data_segment, max_clones_id);
json reads_germline;
......
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