Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Missing SQ header in BAM output #2515

Merged
merged 1 commit into from
Apr 12, 2024
Merged

[FIX] Missing SQ header in BAM output #2515

merged 1 commit into from
Apr 12, 2024

Conversation

eseiler
Copy link
Member

@eseiler eseiler commented Apr 9, 2024

The BAM output is missing the @SQ headers derived from the context.

According to the SAM spec, the header should contain the references.

When rewriting a seqan2 BAM with samtools view -hb, the @SQ lines are silently regenerated (from the l_name, name, and l_ref data fields in the list of reference information in the BAM file).

@eseiler eseiler marked this pull request as ready for review April 9, 2024 16:40
include/seqan/bam_io/write_bam.h Outdated Show resolved Hide resolved
@eseiler eseiler merged commit db5e0ce into seqan:main Apr 12, 2024
14 checks passed
@eseiler eseiler deleted the fix/bam branch April 12, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants