Conversation
3c1948a to
37e3baa
Compare
Instead of addressing a position on the genome with a (reference_id, reference_start) tuple, we now use a single 64-bit `ref_start` integer. Advantages: - Slightly simpler code in some places - This should allow us to later reduce the number of bits needed for the reference coordinate. - A downside is that recovering the chromosome a position is on requires a binary search, but this only needs to be done essentially once when converting the output to SAM. The randstrobes generated in N regions change slightly because the pseudorandom nucleotide that the N wildcards are replaced with depends on the position, which is now relative to the start of the genome and not the start of the contig. Closes #227 See #597
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.
Instead of addressing a position on the genome with a (reference_id, reference_start) tuple, this uses a single 64-bit
ref_startinteger.Advantages:
A downside is that recovering the chromosome a position is on requires a binary search. This is in this draft only done once when converting the output to SAM and comes at essentially no cost.
However, there are a couple of places in the code (currently marked with a
TODOcomment) where we iterate over anchors or chains from left to right and where we would previously do something when transitioning from one contig to another. Now, we can theoretically 1) chain from one contig to another and 2) pair one read with one on another contig. We’ll have to think a bit more about how much we need to prevent this.The randstrobes generated in N regions change slightly because the pseudorandom nucleotide that the N wildcards are replaced with depends on the position, which is now relative to the start of the genome and not the start of the contig.
Closes #227
See #597