Skip to content

Commit 5fbd281

Browse files
committed
Fix examples/pangenome/debruijn.py import GraphModel
1 parent 8dbd494 commit 5fbd281

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/pangenome/debruijn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import tqdm
1515

16-
from hdlib.graph import Graph
16+
from hdlib.model import GraphModel
1717

1818

1919
# Path to the mapping genome taxonomic label
@@ -113,7 +113,7 @@
113113
start_time = time.time()
114114

115115
# Define the HD representation of a directed weighted graph
116-
graph = Graph(size=10000, directed=True, seed=0)
116+
graph = GraphModel(size=10000, directed=True, seed=0)
117117

118118
print("Train edges {}".format(len(train_edges)))
119119

@@ -144,7 +144,7 @@
144144
if NPROC > total_test_genomes:
145145
NPROC = total_test_genomes
146146

147-
if NPROC > os.cpu_count()
147+
if NPROC > os.cpu_count():
148148
NPROC = os.cpu_count()
149149

150150
predictions = dict()

0 commit comments

Comments
 (0)