Commit 088b5f02 authored by Marc Duez's avatar Marc Duez

c++ : windows.cpp : update json output to 2014.10.10 format

parent 6f85cfea
......@@ -163,21 +163,22 @@ JsonArray WindowsStorage::sortedWindowsToJsonArray(map <junction, JsonList> json
{
JsonList windowsList;
JsonArray json_size;
JsonArray json_reads;
JsonArray json_seg;
json_size.add(it->second);
json_reads.add(it->second);
if (json_data_segment.find(it->first) != json_data_segment.end()){
windowsList.concat(json_data_segment[it->first]);
}else{
windowsList.add("sequence", 0); //TODO need to compute representative sequence for this case
}
windowsList.add("window", it->first);
windowsList.add("size", json_size);
windowsList.add("id", it->first);
windowsList.add("reads", json_reads);
windowsList.add("top", top++);
windowsList.add("id", this->getId(it->first));
//windowsList.add("id", this->getId(it->first));
JsonList seg_stat = this->statusToJson(it->first);
json_seg.add(seg_stat);
windowsList.add("germline", germline_by_window[it->first]->code);
windowsList.add("seg_stat", json_seg);
windowsArray.add(windowsList);
}
......
......@@ -417,7 +417,7 @@ int main (int argc, char **argv)
min_reads_clone = 0 ;
max_clones = 0 ;
break ;
// Seeds
case 's':
......
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