A trait that consensus reads must implement.
Stores information about a read to be fed into a consensus.
Filter reason for when there are too few reads to form a consensus.
Filter reason for when reads are rejected due to low quality.
Filter reason for when reads are rejected for having a minority CIGAR.
Filter reason for when reads are rejected due creation of orphaned consensus (i.e.
Filter reason for when reads are rejected due creation of orphaned consensus (i.e. R1 or R2 failed).
The type of consensus read to output.
Helper method to check that the input BAM is in the correct order for consensus calling.
Helper method to check that the input BAM is in the correct order for consensus calling. Will call the warn function if the sort order looks like it's probably compatible but it's not 100% sure. Will invoke the error function in cases where the sort order is definitely incompatible.
the header of the BAM file to be used for consensus calling
a path or string representing the source of the header
a function to be called when any warnings are detected/emitted
a function to be called when any errors are encountered; should probably throw an exception!
Attempts to construct a String that can be used as a prefix for consensus read names based on the contents of the incoming SAMFileHeader.
Constructs an output header with a single read group for the a BAM.
Contains shared types and functions used when writing UMI-driven consensus callers that take in SamRecords and emit SamRecords.