Skip to main content

simulate_reads

Function simulate_reads 

Source
pub fn simulate_reads(
    reference: &[u8],
    chrom_name: &str,
    config: &ReadSimConfig,
) -> Vec<SimulatedRead>
Expand description

Simulate Illumina-style reads from a reference sequence.

Returns an empty Vec when the reference is shorter than read_length.

§Arguments

  • reference - The reference sequence as uppercase ACGT bytes.
  • chrom_name - Name to tag on every read’s true_chrom field.
  • config - Simulation parameters (coverage, error model, etc.).