Overview
Every DNA sequencing run produces reads with junk on them: leftover adapter pieces and low-quality ends. Before any analysis, labs run a cleanup tool to trim that junk away. Harr-Gene is a new cleanup tool built on Harrington's Sets. It does the same job as the standard tools, on the same public data, in much less time.
about 2.5x fasterthan cutadapt, the fastest of the standard tools
9x fasterthan Trimmomatic
13 to 15x fasterthan fastp
2% fewer errorsleft in the cleaned reads than cutadapt, at the same setting
Time to clean one run, two cores
| Tool | E. coli run | Human run |
| Harr-Gene | 2.8 s | 4.1 s |
| cutadapt | 6.9 s | 9.8 s |
| Trimmomatic | 26.9 s | 31.0 s |
| fastp | 42.5 s | 44.0 s |
In plain terms: the job cutadapt finishes in about ten seconds, Harr-Gene finishes in about four, and the cleaned reads come out at least as clean.
The three tools compared are the most widely used read cleanup tools, each at its latest version and run with only its own options. Test data is public sequencing data. To judge cleaning quality, each tool's output was checked afterwards against the known E. coli genome. No tool saw the genome while it worked.
Complete Details
How it works
Harr-Gene is built on Harrington's Sets. Each read is sorted into a lane by its own features: reads that are already clean, reads that only need their ends trimmed, reads carrying adapter pieces, and reads to drop. Each read gets only the work its lane needs, instead of every read going through every check. No code from the compared tools is used.
What was measured
- Same job for every tool: remove standard Illumina TruSeq adapters, trim low-quality ends at quality 20, and drop pairs with a read shorter than 50 bases.
- Data: a public E. coli sequencing run and a public human sequencing run. Two cores, middle of three timed runs, plain files in and out.
- Cleaning quality, E. coli run: Harr-Gene kept 537.8 million correct bases with 2.48 million error bases left. cutadapt kept 538.2 million with 2.53 million left. fastp kept 551.4 million with 3.90 million left. The raw reads held 5.94 million error bases.
- At a stricter setting Harr-Gene kept 434.8 million correct bases with 365 thousand errors left, against Trimmomatic's 430.3 million with 323 thousand. That is a tie on the same trade-off line.
- Adapter reads left on the human run, out of 8,866 raw: Harr-Gene 244, cutadapt 557, fastp 39, Trimmomatic 3.
Status
Patent pending. Methods are confidential. All rights reserved. Not open source.
Limitations
- Tested on two public runs so far, not a large collection. Larger tests may shift the figures.
- Leaves more adapter reads than fastp and Trimmomatic, though fewer than cutadapt.
- Uses more memory than cutadapt: about 265 MB against 43 MB. Trimmomatic and fastp use more than Harr-Gene.
- Part of fastp's slower time comes from extra reports it produces by default. Each tool was run as shipped.
- Read cleanup is the first of four planned Harr-Gene jobs. K-mer counting, duplicate removal and read alignment are still to come.
Opportunities
Sequencing labs, genome centers and cloud genomics pipelines run read cleanup on every run they produce. A cleanup step that finishes in well under half the time, with the same clean result, frees up machines for the analysis that follows. It drops in where the current cleanup tool sits.
Harr-Gene is patent pending and available for licensing. Michael Harrington, [email protected]
+1 (971) 533-3116
Or use my Contact page.