adds support for bam input, with tag preservation - #72
Open
bwlang wants to merge 1 commit into
Open
Conversation
Author
|
I also did a comprehensive alignment, coverage, and methylation comparison with bwa-meth on real EM-seq data. |
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.
This is a feature addition that can speed up typical pipelines that use UMIs by avoiding the rigamarole of stitching the tags back into aligned reads (e.g. via zipperbams).
Both unaligned and aligned BAMs are supported, with aligned BAMs having their alignments discarded and remapped.
I avoided an htslib dependency by unzipping directly.
ubams are eaxily created using samtools import or fgbio's fastqtobam
BAM Input Support and Integration:
bam.c,bam.h) that reads BAM files without external dependencies, supporting both unaligned and aligned BAM and handling auxiliary tags appropriately.bseq.candbseq.hto auto-detect BAM files, manage BAM/FASTA/FASTQ input transparently, and expose header and pairing information.User-Facing Features and Bugfixes:
README.mdandNEWS.md, including header/tag handling, paired-end validation, and a small bugfix for handling read2 singletons in--methmode.Summary of Most Important Changes:
BAM Input and Parsing:
bam.candbam.himplementing a BAM parser, supporting reading, header extraction, paired-end detection, and auxiliary tag filtering.bseq.cto auto-detect BAM vs. FASTA/FASTQ input, manage BAM file streams, and expose new helper functions for header and pairing info.Paired-End and Tag Handling: