Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusta committed Oct 8, 2024
1 parent c842ee8 commit 0f91011
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metagraph/src/graph/representation/hash/dbg_sshash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ ::map_to_nodes_with_rc_advanced(std::string_view sequence,
std::vector<char> seq_encoded;
seq_encoded.reserve(sequence.size());
for (size_t i = 0; i < sequence.size(); ++i) {
char enc = kmer_t::canonicalize_basepair_forward_map[static_cast<uint8_t>(sequence[i])];
seq_encoded.emplace_back(enc == '\0');
seq_encoded.emplace_back(!kmer_t::is_valid(sequence[i]));
}

auto invalid = utils::drag_and_mark_segments(seq_encoded, 1, k_);
Expand Down

0 comments on commit 0f91011

Please sign in to comment.