bioRxivPreprintOpen accessbioinformatics

spearfish: ultrafast Δ-mapping of long reads to redundant transcriptomes

H. Abdelgawad, I. Martayan, C. MARCHET, R. Patro

Key points

From the paper's conclusion
  • When using spearfish's {Delta}-mapping with oarfish for abundance estimation, the abundance estimates match or improve on those that make use of minimap2's alignments on both simulated reads (especially when they are untrimmed) and on seven SG-NEx runs with spike-ins, and quantification is 3.0-8.8x faster than lr-kallisto in going from reads to abundances.

Abstract

In a transcriptome, isoforms of a gene share most of their sequence, and gene families contain further near-copies. Yet most long-read mappers treat each isoform as a separate target, repeating seeding, chaining, and alignment across every shared exon. We introduce spearfish, a long-read mapper built for this redundancy. Transcript quantification uses each read's compatible transcripts, positions, and relative score differences rather than full alignments. spearfish therefore performs delta mapping ({Delta}-mapping): it computes each target's alignment-score difference from the best candidate, skipping sequence shared by all candidates (which cancels out) and aligning differing regions once per distinct sequence rather than once per target. Seeds are cores from locally consistent parsing (LCP). Because each core depends only on local context, every isoform containing an exon has identical seeds across its interior. We collapse identical seeds within each gene into a core graph, a de Bruijn-like graph whose size is bounded by distinct exonic sequence plus a small term per splice junction, independent of isoform count. Over this graph, spearfish computes exact colinear chaining scores for every candidate transcript while sharing dynamic-programming state via a procedure provably equivalent to per-transcript chaining. On 32 threads across RNA-seq datasets, spearfish maps reads 24-102x faster than minimap2 in under a quarter of the memory, and 2.5-11.5x faster than lr-kallisto's pseudoalignment. On simulated reads, it ranks the true transcript first more often than minimap2 on HiFi reads and at least as often on ONT reads. With oarfish, abundance estimates match or improve on those from minimap2 alignments on simulated reads (with or without primers and poly(A) tails) and seven SG-NEx spike-in runs, while quantifying 4.1-8.8x faster than lr-kallisto.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

spearfish: ultrafast Δ-mapping of long reads to redundant transcriptomes — Science Skim