Skip to content

PlainMap: a lightweight, restartable mapping pipeline for ancient and modern DNA

Michael V. Westbury

q-bio.GNarXiv:2609.18372

Abstract

Mapping sequencing reads to a reference genome requires preprocessing and alignment choices that can vary with library type, fragment length, sequencing platform, and reference genome. These considerations are particularly important for ancient and historical DNA, where short and damaged fragments can make the most appropriate mapping strategy difficult to determine a priori. We present PlainMap, a lightweight and restartable mapping pipeline for modern and degraded DNA sequencing data. PlainMap accepts a simple manifest of FASTQ files, automatically identifies single-end and paired-end data from read headers, supports mixed sequencing platforms, and provides alternative mapping strategies for modern and degraded DNA. Deterministic chunking and checkpoint-based execution allow large analyses to resume after interruption, while optional pilot subsampling enables empirical comparison of mapping strategies using identical subsets of raw fragments. PlainMap produces duplicate-filtered BAM files together with fragment-aware mapping and coverage statistics. Evaluation using heterogeneous sequencing data confirmed the expected behaviour of the three mapping modes, while adaptive chunking reduced peak memory use by approximately 25% and allowed an interrupted analysis to resume from completed mapping chunks. PlainMap is implemented as a single Bash script and is freely available at https://github.com/BiodiversityExtinction/PlainMap.

Create a lesson