Expand description
Simulated read pair generation.
Combines fragment extraction, error model application, and read naming
into complete ReadPair objects ready for FASTQ output. Computes
proper CIGARs from the haplotype-to-reference coordinate mapping for
golden BAM output.
Structs§
- Read
Pair - A simulated read pair (or single read for SE mode).
- Simulated
Read - A single simulated read with bases, quality scores, and metadata.
Functions§
- cigar_
from_ ref_ positions - Compute a CIGAR from a slice of ascending reference positions, plus optional adapter soft-clipping.
- cigar_
to_ string - Format a CIGAR as a human-readable string (e.g. “50M3I20M2S”).
- generate_
read_ pair - Generate a simulated read pair from a fragment.