Hublabel#4870
Conversation
… get a wrong answer
…bbdsg that makes labels that can fit
This reverts commit 5436d73.
…indexing test cases
Co-authored-by: Adam Novak <anovak@soe.ucsc.edu>
|
This goes with vgteam/libbdsg#239, for reference. |
adamnovak
left a comment
There was a problem hiding this comment.
I like the idea of breaking up all the stuff in snarl_distance_index.cpp into more distinct units. But I think the design and especially documentation of the units needs work, and we also need some overarching organization of those units that isn't just several cpp files that all belong to one header.
I think some of these pieces might make sense as a few different algorithms in vg::algorithms. There each algorithm could have its own header defining the interface, and then all the helper stuff to power each could be nicely tucked away in the cpp file for just that algorithm.
If instead we want to keep them organized under the theme of building a snarl distance index, we might give them a folder and a namespace that reflects that, and then again give each piece its own header. Then that whole namespace would have something that sort of constitutes its external interface (populate_snarl_index()?) and around there we would have some documentation on how the different responsibilities are spread across these modules.
|
I think there's also still outstanding stuff to do in vgteam/libbdsg#239 around dropping code from the oracle algorithms that aren't being used, and making sure we have a fresh file format version number, which I think is covered by the current review there. It looks like CI is failing here because the hash-constraining tests weren't actually dropped yet. |
|
Dropped the hash tests. Moved refactor commits to |
adamnovak
left a comment
There was a problem hiding this comment.
This looks pretty good. I found a couple places where it's not quite done and made suggestions.
I think the libbdsg changes also need to be finished, and then this needs to be made to point at the final libbdsg commit. Right now it's behind vgteam/libbdsg#239 by a few commits.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Adam Novak <anovak@soe.ucsc.edu>
adamnovak
left a comment
There was a problem hiding this comment.
This looks pretty good now. The only thing I think we really need to change is making sure we point at the actual libbdsg commit we want.
There was a problem hiding this comment.
This doesn't seem to be pulling in vgteam/libbdsg@e0adffb which makes a breaking change to the distance index format. So we definitely don't want to merge this without that change.
Co-authored-by: Adam Novak <anovak@soe.ucsc.edu>
Changelog Entry
To be copied to the draft changelog by merger:
Description
Adds hub labeling functionality to the snarl distance index.