Abstract
Motivation Microbial sequences generated from clinical samples are often contaminated with human host sequences that must be removed for ethical and legal reasons. Care must be taken to excise host sequences without inadvertently removing target microbial sequences to the detriment of downstream analyses such as variant calling and de novo assembly.
Results To facilitate accurate host decontamination of both short and long sequencing reads, we developed Hostile, a tool capable of accurate host read removal using a laptop. We demonstrate that our approach removes at least 99.6% of real human reads and retains at least 99.989% of simulated bacterial reads. Using Hostile with a masked reference genome further increases bacterial read retention (>=99.997%) with negligible (<=0.001%) reduction in human read removal performance. Compared with an existing tool, Hostile removes 21-23% more human short reads and 22-43x fewer bacterial reads with comparable execution time.
Availability and implementation Hostile is implemented as an MIT licensed Python package available from https://github.com/bede/hostile together with supplementary material.
Competing Interest Statement
The authors have declared no competing interest.
Footnotes
Added evaluation of diverse human genomes representing all 26 populations in the expanded 1000 Genomes Prohect cohort; incorporated feedback from Martin Hunt; added coauthor Martin Hunt; revised benchmarks to address defect in HRRT's handling of paired reads; added description of built-in masking utility. Manuscript and supplementary updated.