whittle 1.0.0

Coordinate-consistent trimming of long-read uBAM and tagged FASTQ
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The format-neutral read record shared by the FASTQ and BAM workflows.

/// A format-neutral read. `qual` holds raw Phred scores (0-based), not ASCII.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ReadRecord {
    /// Read identifier, including any description or tab-delimited tags that
    /// followed it in the source header.
    pub name: Vec<u8>,
    /// Nucleotide sequence as ASCII bytes.
    pub seq: Vec<u8>,
    /// Raw Phred scores. The FASTQ reader rejects quality bytes outside ASCII
    /// 33..=126, so FASTQ-sourced values lie in 0..=93; BAM-sourced values may
    /// be higher and are clamped to 93 on FASTQ output.
    pub qual: Vec<u8>,
}