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
a5259676
Commit
a5259676
authored
May 08, 2020
by
Rayan Chikhi
Browse files
allow deeper recursions and fixed min_mol_idx init
parent
b15e9b3c
Changes
1
Show whitespace changes
Inline
Side-by-side
deconvolution/main/evaluate.py
View file @
a5259676
...
...
@@ -2,6 +2,7 @@
import
sys
sys
.
setrecursionlimit
(
10000
)
import
argparse
from
termcolor
import
colored
import
networkx
as
nx
...
...
@@ -318,7 +319,7 @@ def recursive_longest_path(current_node, current_molecule, next_nodes, longest_p
longest
=
0
longest_next
=
None
min_mol_idx
=
current_molecule
+
10000
min_mol_idx
=
float
(
'inf'
)
# Recursively compute the longest path
for
mol_idx
,
node
in
next_nodes
[
current_node
][
current_molecule
]:
size
,
_
,
_
=
recursive_longest_path
(
node
,
mol_idx
,
next_nodes
,
longest_paths
)
...
...
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