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
d1ff2f33
Commit
d1ff2f33
authored
May 14, 2020
by
Yoann Dufresne
Browse files
add third sorting critera
parent
8eb083f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
deconvolution/d2graph/path_optimization.py
View file @
d1ff2f33
...
...
@@ -66,7 +66,7 @@ class Optimizer:
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
,
-
u
.
get_link_divergence
(),
self
.
d2g
[
str
(
u
.
idx
)][
str
(
current_node
)][
"distance"
])
-
self
.
d2g
[
str
(
u
.
idx
)][
str
(
current_node
)][
"distance"
])
neighbors
.
sort
(
key
=
node_sorting_value
)
stack
.
append
(
neighbors
)
...
...
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