Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
04ee12ed
Commit
04ee12ed
authored
Apr 14, 2016
by
Mathieu Giraud
Browse files
core/segment.cpp: new json format
parent
5608bd5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/core/segment.cpp
View file @
04ee12ed
...
...
@@ -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"
]
=
star
t
;
j
[
"end"
]
=
end
;
j
[
"delRight"
]
=
del_righ
t
;
}
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment