feat: embed reference M5 checksums in BAM headers#93
Open
jayhesselberth wants to merge 1 commit intomainfrom
Open
feat: embed reference M5 checksums in BAM headers#93jayhesselberth wants to merge 1 commit intomainfrom
jayhesselberth wants to merge 1 commit intomainfrom
Conversation
Add ref_dict rule to generate sequence dictionary via samtools dict, then reheader aligned BAMs to include M5 and UR fields on @sq lines.
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.
Summary
ref_dictrule inaatrnaseq-reference.smkthat runssamtools dictto generate a sequence dictionary with MD5 checksums from the validated referencebwa_aligninaatrnaseq-process.smkto reheader aligned BAMs, replacing@SQlines with those from the dict (addingM5andURfields) while preserving@HDand@PGlinesTest plan
pixi run dry-run— DAG resolves,ref_dictappears beforebwa_alignsnakefmtpassespixi run test— full test run with test datasamtools view -H .tests/outputs/bam/final/test_sample/test_sample.bam | grep '^@SQ'showsM5:andUR:fields🤖 Generated with Claude Code