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
4e175f2c
Commit
4e175f2c
authored
Aug 07, 2019
by
Yoann Dufresne
Browse files
update tests to correspond to the new way to construct d2 graphs
parent
d5486b14
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/d2_graph_test.py
View file @
4e175f2c
...
...
@@ -10,7 +10,8 @@ from tests.d_graph_data import complete_graph
class
TestD2Graph
(
unittest
.
TestCase
):
def
test_construction
(
self
):
d2
=
D2Graph
(
complete_graph
,
6
)
d2
=
D2Graph
(
complete_graph
)
d2
.
construct_from_barcodes
(
index_size
=
6
,
verbose
=
False
)
# Evaluate the number of candidate unit d_graphs generated
for
node
,
candidates
in
d2
.
d_graphs_per_node
.
items
():
...
...
@@ -38,7 +39,8 @@ class TestD2Graph(unittest.TestCase):
G
=
gm
.
generate_d_graph_chain
(
size
,
d
)
d2
=
D2Graph
(
G
,
index_size
=
index_k
)
d2
=
D2Graph
(
G
)
d2
.
construct_from_barcodes
(
index_size
=
index_k
,
verbose
=
False
)
# Test the number of d-graphs
awaited_d_num
=
size
-
2
*
d
...
...
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