Skip to content

Commit

Permalink
Update metagraph/src/graph/representation/hash/dbg_sshash.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
adamant-pwn authored Oct 8, 2024
1 parent fca3569 commit cd03ed2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metagraph/src/graph/representation/hash/dbg_sshash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ void map_to_nodes_with_rc_impl(size_t k,

using kmer_t = get_kmer_t<Dict>;

std::vector<bool> seq_encoded(n);
std::vector<bool> invalid_char(n);
for (size_t i = 0; i < n; ++i) {
seq_encoded[i] = !kmer_t::is_valid(sequence[i]);
invalid_char[i] = !kmer_t::is_valid(sequence[i]);
}

auto invalid_kmer = utils::drag_and_mark_segments(seq_encoded, 1, k);
auto invalid_kmer = utils::drag_and_mark_segments(invalid_char, true, k);

kmer_t uint_kmer = sshash::util::string_to_uint_kmer<kmer_t>(sequence.data(), k - 1);
uint_kmer.pad_char();
Expand Down

0 comments on commit cd03ed2

Please sign in to comment.