Skip to content

Commit

Permalink
Fix number of entries in a distanceless trivial snarl record
Browse files Browse the repository at this point in the history
  • Loading branch information
xchang1 committed Nov 27, 2024
1 parent 1a1fd24 commit 0ef534b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bdsg/include/bdsg/snarl_distance_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ class SnarlDistanceIndex : public SnarlDecomposition, public TriviallySerializab
const static size_t BITS_FOR_TRIVIAL_NODE_OFFSET = 8;
const static size_t MAX_TRIVIAL_SNARL_NODE_COUNT = (1 << BITS_FOR_TRIVIAL_NODE_OFFSET) -1;
const static size_t DISTANCED_TRIVIAL_SNARL_RECORD_SIZE = 8;
const static size_t DISTANCELESS_TRIVIAL_SNARL_RECORD_SIZE = 2;
const static size_t DISTANCELESS_TRIVIAL_SNARL_RECORD_SIZE = 3;
const static size_t TRIVIAL_SNARL_PARENT_OFFSET = 1;
const static size_t TRIVIAL_SNARL_NODE_COUNT_OFFSET = 2;
const static size_t TRIVIAL_SNARL_PREFIX_SUM_OFFSET = 3;
Expand Down Expand Up @@ -895,6 +895,11 @@ class SnarlDistanceIndex : public SnarlDecomposition, public TriviallySerializab
* that include boundary nodes (OVERSIZED_SNARL)
*/
size_t snarl_size_limit = 5000;

//If this is true, then only store distance along top-level chains. Everything still needs its minimum lengths to get
//the distances along top-level chains but don't store internal distances in snarls or in nested chains
//This overrides snarl_size_limit
bool only_top_level_chain_distances=false;
static const int max_num_size_limit_warnings = 100;
std::atomic<int> size_limit_warnings{0};
static const uint32_t magic_number = 1738636486;
Expand Down

0 comments on commit 0ef534b

Please sign in to comment.