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
9f16d4bd
Commit
9f16d4bd
authored
May 14, 2020
by
Yoann Dufresne
Browse files
revert wrong opti
parent
5091e494
Changes
1
Show whitespace changes
Inline
Side-by-side
deconvolution/d2graph/path_optimization.py
View file @
9f16d4bd
...
...
@@ -74,8 +74,8 @@ class Optimizer:
def
node_sorting_value
(
node
):
u
=
opt
.
d2g
.
node_by_idx
[
int
(
node
)]
return
(
0
if
len
(
Counter
(
opt
.
d2g
.
get_covering_variable_node
(
int
(
node
)))
-
coverage
)
==
0
else
1
,
-
self
.
d2g
[
str
(
u
.
idx
)][
str
(
current_node
)][
"dista
nce
"
]
,
-
u
.
get_link_diverge
nce
()
)
-
u
.
get_link_diverge
nce
()
,
-
self
.
d2g
[
str
(
u
.
idx
)][
str
(
current_node
)][
"dista
nce
"
]
)
neighbors
.
sort
(
key
=
node_sorting_value
)
stack
.
append
(
neighbors
)
...
...
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