Expand description
Base/quality packing and trusted four-line FASTQ pack paths.
The high-level FASTQ readers expose borrowed records. This module provides the lower-level side-channel representation used when downstream code wants packed two-bit bases, ambiguity masks, and Phred+33 summaries without allocating an owned record per read. Base and quality packing utilities.
Bases are packed four per byte using A=0, C=1, G=2, and T=3. Ambiguous or non-canonical bases are represented by zero bits in the packed byte stream and a set bit in the separate ambiguity mask. Quality helpers interpret input as Phred+33 FASTQ qualities.
Structs§
- Base
Summary - Summary of a packed DNA sequence.
- Packed
Record Summary - Combined base and quality summary for one FASTQ record.
- Packed
Sequence - Packed sequence bytes plus one bit per ambiguous/non-ACGT base.
- Quality
Summary - Phred+33 quality summary.
- Trusted
Pack Slab - Progress notification for one trusted pack slab.
- Trusted
Packed Pair - Borrowed view of one trusted packed R1/R2 pair.
- Trusted
Packed Record - Borrowed view of one trusted packed FASTQ record.
Enums§
- Pack
Buffer - Output buffer involved in a packing error.
- Pack
Error - Error returned by base or quality packing helpers.
- Pack
Kernel - Selected implementation family for base packing.
- Packed
Base - Decoded base value from a packed sequence.
Traits§
- Trusted
Pack Sink - Callback interface for trusted streaming pack paths.
Functions§
- bin_
qualities_ into - Bin Phred+33 qualities into threshold indexes.
- bin_
qualities_ into_ slice - Bin Phred+33 qualities into a caller-provided output slice.
- bit_
mask_ len - Return the number of bytes needed for a one-bit-per-item mask.
- is_
masked - Return whether
indexis marked ambiguous in an ambiguity mask. - pack_
bases - Pack a sequence into newly allocated packed-base and ambiguity buffers.
- pack_
bases_ and_ summarize_ qualities_ into - Pack bases and summarize Phred+33 qualities into reusable buffers.
- pack_
bases_ into - Pack a sequence into reusable
Vecbuffers and return base counts. - pack_
bases_ into_ slices - Pack a sequence into caller-provided fixed-size slices.
- pack_
trusted_ fastq - Pack all complete records from an in-memory trusted four-line FASTQ buffer.
- pack_
trusted_ fastq_ direct - Pack an in-memory trusted FASTQ buffer with the direct scanner.
- pack_
trusted_ fastq_ direct_ sink - Pack an in-memory trusted FASTQ buffer with the direct scanner into a sink.
- pack_
trusted_ fastq_ read - Stream trusted four-line FASTQ from a reader and invoke a callback per record.
- pack_
trusted_ fastq_ read_ direct - Stream trusted FASTQ from a reader using the direct scanner.
- pack_
trusted_ fastq_ read_ direct_ sink - Stream trusted FASTQ from a reader using the direct scanner into a sink.
- pack_
trusted_ fastq_ read_ sink - Stream trusted four-line FASTQ from a reader into a sink.
- pack_
trusted_ fastq_ sink - Pack all complete records from an in-memory trusted FASTQ buffer into a sink.
- pack_
trusted_ paired_ fastq_ read - Stream ordered R1/R2 FASTQ inputs and emit trusted packed pairs.
- packed_
base_ at - Decode one base at
indexfrom packed-base and ambiguity buffers. - packed_
base_ len - Return the number of bytes needed to store
base_counttwo-bit bases. - selected_
pack_ kernel - Return the base-packing kernel selected for this build and host.
- summarize_
qualities - Summarize a slice of Phred+33 quality bytes.