Conversation
Contributor
Contributor
Author
The current gbam writer expects a BAMRawRecord. Because of that I converted the SamRecord to BAMRawRecord rather than directly passing the sam record. I felt it would be risky to change the stable writer code to support SAM directly. But if there are "considerable" performance issuse, we may consider avoid creating BAMRawRecords. WDYT @AndreaGuarracino |
Contributor
|
Yeah, if we become too slow, we can consider that!
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Hasitha Kaushan ***@***.***>
Sent: Monday, July 14, 2025 1:13:36 PM
To: NickRoz1/gbam ***@***.***>
Cc: Andrea Guarracino ***@***.***>; Mention ***@***.***>
Subject: Re: [NickRoz1/gbam] SAM input to gBAM (PR #27)
[https://avatars.githubusercontent.com/u/41409951?s=20&v=4]chris7716 left a comment (NickRoz1/gbam#27)<#27 (comment)>
Can we avoid going through BAM records? Sent from Outlook for Androidhttps://aka.ms/AAb9ysg
The current gbam writer expects a BAMRawRecord<https://github.com/NickRoz1/gbam/blob/master/gbam_tools/src/writer.rs#L125>. Because of that I converted the SamRecord to BAMRawRecord rather than directly passing the sam record. I felt it would be risky to change the stable writer code to support SAM directly. But if there are "considerable" performance issuse, we may consider avoid creating BAMRawRecords. WDYT @AndreaGuarracino<https://github.com/AndreaGuarracino>
—
Reply to this email directly, view it on GitHub<#27 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AO26XHSRUJYN4JFLG5LMCUL3IOGGBAVCNFSM6AAAAACBOVZZ7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANRZGA3TGMZUHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
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.
Logic
SAM > GBAM > SAM records are identical. But there is an issue in the rust GBAM reader code how we set SAM header. We do not set AS: tags in the header when reconverting gbam to bam. Because of that reconverted bam's header is not identical to the orginal bam's header. https://github.com/NickRoz1/gbam/blob/master/gbam_tools/src/bam/gbam_to_bam.rs#L21-L24