Commit 04ee12ed authored by Mathieu Giraud's avatar Mathieu Giraud

core/segment.cpp: new json format

parent 5608bd5c
......@@ -50,25 +50,23 @@ string AlignBox::getSequence(string sequence) {
void AlignBox::addToJson(json &seg) {
seg[key] = ref_label;
json j;
if (key == "5")
{
seg[key+"end"] = end;
seg[key+"del"] = del_right;
}
else if (key == "3")
j["name"] = ref_label;
if (key != "3") // no end information for J
{
seg[key+"del"] = del_left;
seg[key+"start"] = start;
j["end"] = end;
j["delRight"] = del_right;
}
else
if (key != "5") // no start information for V
{
seg[key+"delLeft"] = del_left;
seg[key+"start"] = start;
seg[key+"end"] = end;
seg[key+"delRight"] = del_right;
j["start"] = start;
j["delLeft"] = del_left;
}
seg[key] = j ;
}
ostream &operator<<(ostream &out, const AlignBox &box)
......
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