API that simulates sequencing reads using wgsim, which was compiled to WebAssembly and runs as a Cloudflare Worker.

For details, check out this blog post or see the source code on GitHub.


          

APIs


URL Parameters

  • chrom: Chromosome - default: chr1
  • start: Start position - default: random
  • stop: Stop position - default: start + 1e3
  • length: Sequence length - default: 70
  • n: Number of sequences per chunk - default: 10
  • ref: Ref genome - default: hg38 (only hg38 supported)
  • error: Base error rate - default: 0.02
  • indel_frac: Fraction of indels - default: 0.15
  • indel_extend: Probability an indel is extended - default: 0.3
  • mutation_rate: Mutation rate - default: 0.001
  • seed: Random seed - default: null