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
8eb083f4
Commit
8eb083f4
authored
May 14, 2020
by
Yoann Dufresne
Browse files
add third sorting critera
parent
eeab1f7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
deconvolution/d2graph/path_optimization.py
View file @
8eb083f4
...
...
@@ -65,7 +65,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
,
-
u
.
get_link_divergence
())
-
u
.
get_link_divergence
(),
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