Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yoann DUFRESNE
linked reads molecule ordering
Commits
0f44e223
Commit
0f44e223
authored
May 13, 2020
by
Yoann Dufresne
Browse files
bugfix edit path
parent
01f9f006
Changes
1
Hide whitespace changes
Inline
Side-by-side
deconvolution/main/evaluate.py
View file @
0f44e223
...
...
@@ -380,7 +380,7 @@ def compute_shortest_edit_path(path):
edit_path
=
edit_distance
(
molecule_order
,
d2_path_order
)
filtered_edit_path
=
[
x
[
0
]
for
x
in
edit_path
if
x
[
0
]
==
x
[
1
]]
reverse_edit_path
=
edit_distance
(
molecule_order
,
d2_path_order
[::
-
1
])
reverse_filtered_edit_path
=
[
x
[
0
]
for
x
in
edit_path
if
x
[
0
]
==
x
[
1
]]
reverse_filtered_edit_path
=
[
x
[
0
]
for
x
in
reverse_
edit_path
if
x
[
0
]
==
x
[
1
]]
if
len
(
filtered_edit_path
)
>
len
(
reverse_filtered_edit_path
):
return
filtered_edit_path
...
...
Write
Preview
Supports
Markdown
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