xa2multi.pl: reverse sequence and phred if orientations differ between primary and secondary alignment#5
Merged
Conversation
… alignment has different orientation than primary alignment
lh3
pushed a commit
that referenced
this pull request
Sep 7, 2011
xa2multi.pl: reverse sequence and phred if orientations differ between primary and secondary alignment
teepean
added a commit
to teepean/bwa
that referenced
this pull request
Jun 1, 2026
lh3#5 real) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
teepean
added a commit
to teepean/bwa
that referenced
this pull request
Jun 1, 2026
…, bit-exact Restructure bwa-aln-gpu into a producer/consumer pipeline: the main thread owns the GPU (read -> MT preprocess -> upload -> kernel -> download has_hit, serial on one stream so the shared per-warp global backing is never raced); each chunk is handed to ONE in-order finisher thread doing the CPU reconcile + output (.sai or fused samse), concurrent with the next chunk's GPU work. A single ordered consumer preserves drand48 (repeat-hit) and output order -> bit-exact. Structured multi-GPU-ready (replicate the GPU stage per device + round-robin chunks; keep one ordered finisher) for when a 2nd card is added. Full file (3.95M reads, fused alnse SAM): 174.2 s -> 160.9 s = 24,541 reads/s (overlap hid ~13s of the ~18s CPU tail), records BIT-EXACT (md5 e2a6e1c9). Both modes re-verified bit-exact under the pipeline (.sai eecf35c1, SAM records identical). vs CPU bwa aln -t16 + samse = 895 s -> ~5.56x end-to-end. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
When a secondary alignment given in an XA tag differs in orientation from the primary one, the xa2multi.pl now gives the reverse complementary sequence and the reverse phred string.