dont put haplotypes in ReferencePathOverlays#236
Merged
glennhickey merged 2 commits intomasterfrom Feb 6, 2026
Merged
Conversation
adamnovak
approved these changes
Feb 5, 2026
Member
adamnovak
left a comment
There was a problem hiding this comment.
I think the idea of "hidden" paths needs to be removed, since they don't exist anymore (and that's what was causing the over-indexing). But it looks like this will fix the over-indexing.
Comment on lines
+49
to
+52
| /// even if they are hidden. | ||
| ReferencePathOverlay(const PathHandleGraph* graph, bool all_paths = false); | ||
|
|
||
| /// Same, but also indexes hidden paths listed in extra_path_names. |
Member
There was a problem hiding this comment.
We don't/shouldn't have a concept of a path being "hidden" anymore.
Comment on lines
+54
to
+55
| const std::unordered_set<std::string>& extra_path_names, | ||
| bool all_paths = false); |
Member
There was a problem hiding this comment.
If all_paths is true, extra_path_names can't really be used, because we'll do all paths, since none of them are hidden anymore.
Comment on lines
-22
to
-25
| // TODO: If we made the overlay transparent so we could access paths | ||
| // that didn't get indexed, we wouldn't be weirdly indexing haplotype | ||
| // paths from backends that don't hide them in the "reference" path | ||
| // overlay. |
Member
There was a problem hiding this comment.
Now all the backends are like that; I think I forgot to address that here when I made that change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Let's keep ReferencePathOverlays for Reference Paths. Otherwise, memory can get out of hand on larger graphs...