Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamant-pwn committed Nov 4, 2024
1 parent aa8b9fb commit 2d1379e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions metagraph/integration_tests/test_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def test_simple_align_fwd_rev_comp_json_all_graphs(self, representation):

params = self._get_stats(self.tempdir.name + '/genome.MT' + graph_file_extension[representation])
self.assertEqual('11', params['k'])
self.assertEqual('16461', params['nodes (k)'])
self.assertEqual('16438', params['nodes (k)'])
self.assertEqual('basic', params['mode'])

stats_command = '{exe} align --json -i {graph} --align-min-exact-match 0.0 {reads}'.format(
Expand All @@ -363,7 +363,7 @@ def test_simple_align_edit_distance_all_graphs(self, representation):

params = self._get_stats(self.tempdir.name + '/genome.MT' + graph_file_extension[representation])
self.assertEqual('11', params['k'])
self.assertEqual('16461', params['nodes (k)'])
self.assertEqual('16438', params['nodes (k)'])
self.assertEqual('basic', params['mode'])

stats_command = '{exe} align --json --align-edit-distance -i {graph} --align-min-exact-match 0.0 {reads}'.format(
Expand Down
4 changes: 2 additions & 2 deletions metagraph/src/annotation/row_diff_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ std::shared_ptr<const bit_vector> route_at_forks(const graph::DeBruijnGraph &gra
const std::string &count_vectors_dir,
const std::string &row_count_extension) {
logger->trace("Assigning row-diff successors at forks...");

std::shared_ptr<const bit_vector> rd_succ;

bool optimize_forks = false;
for (const auto &p : fs::directory_iterator(count_vectors_dir)) {
if (utils::ends_with(p.path(), row_count_extension))
Expand Down
4 changes: 2 additions & 2 deletions metagraph/src/graph/representation/hash/dbg_hash_fast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ class DBGHashFastImpl : public DBGHashFast::DBGHashFastInterface {
const std::function<bool()> &terminate) const override final;

void call_outgoing_kmers(node_index node,
const OutgoingEdgeCallback &callback) const override final;
const OutgoingEdgeCallback &callback) const override final;

void call_incoming_kmers(node_index node,
const IncomingEdgeCallback &callback) const override final;
const IncomingEdgeCallback &callback) const override final;

void call_nodes(const std::function<void(node_index)> &callback,
const std::function<bool()> &stop_early) const override final;
Expand Down

0 comments on commit 2d1379e

Please sign in to comment.