The Pursuit of Efficiency
A Retrospective on MetaBAT 2
The Paper
The Story Behind the Paper
Seeing MetaBAT hit the 6,000-citation mark recently feels more like looking at an old family photo than a software metric. In computational biology, a decade is long enough for most tools to become fossils, yet people are still downloading and citing MetaBAT 2.0, using it and treating it as a standard benchmark to beat. Many tools can outperform MetaBAT 2.0 in binning accuracy now, but few can match its speed even today. While the citation count keeps climbing, I can’t help thinking about the time between 2016 and 2019 when a group of us happened to be in the same room at the same time.
Most of that team has since moved to different labs or to industry. But for a few years, we were obsessed with a single, exhausting goal: making binning fast enough to be actually useful for tackling large environmental metagenomic datasets.
In 2016, we had just come off MetaBAT 1.0, which was a painful experience to publish. It spent 13 months in peer-review purgatory. By the time it was out, we already knew it was probably obsolete. Datasets were exploding, making manual parameter tuning impractical. I knew we needed a tool that was data-driven, had few parameters, and, most importantly, was fast.
The core “engine” of the project was Don Kang. Don wasn’t a loud guy, but he had a way of retreating into a problem. When an algorithmic hurdle came up, he’d disappear. We knew that when he finally surfaced, he’d have the logic for something like graph-based iterative clustering that would eventually eliminate the need for hand-picked parameters.
But a smart algorithm is useless if it takes a month to run. That’s where Rob Egan came in. Rob is a high-performance computing (HPC) purist. He has zero patience for “good enough” code. He tore into the original architecture, ripping out the bottlenecks and replacing them with the multi-threading and priority queues that turned it into a speed demon.
Then there was Feng Li, a graduate student visiting from abroad. Feng had two gears: finding the best hole-in-the-wall restaurants in the Bay Area and obsessing over bare-metal hardware. He didn’t just write code; he thought about CPU cache lines and instruction cycles. He squeezed every bit of efficiency out of the processor that we didn’t even know we were leaving on the table.
The energy was infectious. Edward Kirton, one of our bioinformaticians, was a “builder” in every sense. While he was literally building an addition to his house with his own hands after work, he was prototyping new code extensions during the day. He once spent weeks on a Genetic Algorithm to find the “perfect” parameters for the software. The result? It turned out the parameters derived from the data itself were already the best. We laughed about it, but it gave us the confidence to stop over-engineering and ship the tool.
The glue, however, was Professor Hong An. She was a visiting professor (and Feng’s advisor) who brought a sense of humanity to the grind. She’d bring in Chinese onion pancakes (the kind her father used to make), and we’d sit there eating and arguing about abundance weights versus sensitivity. Those debates were where the real decisions happened. We decided to prioritize multi-sample co-assemblies because we knew that was where the field was headed, even if it meant the tool might struggle with the occasional single-sample dataset.
It worked. MetaBAT 2.0 finished a real-world-like dataset in one minute and 54 seconds, while alternative tools required anywhere from two to 14 hours, according to the Critical Assessment of Metagenome Interpretation (CAMI) evaluation. Unlike the 13-month slog of the first paper, MetaBAT 2.0 sailed through PeerJ in six weeks. People like German Uritskiy picked it up almost immediately, folding it into metaWRAP and getting it onto Bioconda, which really pushed it into the hands of the community.
I get asked about MetaBAT 3.0 all the time. The truth is, it may never happen. I can’t just hire a new “Don” or a new “Rob.” I can’t manufacture the specific chemistry that happens when a bunch of idiosyncratic people decide to solve a niche problem over home-cooked pancakes.
Software is usually seen as a cold, logical product. But for me, MetaBAT 2.0 is a record of that specific team. For anyone starting out in this field, my only advice is to look for that “click.”
Don’t just look for the smartest people; look for the ones who share the same passion to push a tool to an extreme, whether it is speed, accuracy, or robustness. That’s where the real work happens.