Alexander Noskov
04/14/2026, 2:30 PMulimit -n 65536. Once properly configured, it was rock solid across all 192 runs.
Also ran a quick I/O test - suspected the thread scaling plateau (both tools gain only ~1.2x going from t=8 to t=16) was network storage bottleneck. Moved BAMs to local SSD and RAM, but got only 8-15% improvement.
So the speed and memory efficiency is real, but not automatic: it requires explicit configuration.
All data, scripts, and a setup guide for a budget-friendly Hetzner server, including the sambamba config details: https://github.com/WeTheAgents/rnaseq_data/tree/main/phase3_three_wayPhil Ewels
04/14/2026, 2:36 PMPhil Ewels
04/14/2026, 2:37 PMPhil Ewels
04/14/2026, 2:38 PMJonathan Manning
04/14/2026, 3:52 PMJonathan Manning
04/14/2026, 3:53 PMPhil Ewels
04/14/2026, 3:54 PMJonathan Manning
04/14/2026, 3:55 PMJonathan Manning
04/14/2026, 3:58 PMPhil Ewels
04/14/2026, 3:59 PMPhil Ewels
04/14/2026, 3:59 PMJonathan Manning
04/14/2026, 3:59 PMsamtools sort -n | samtools fixmate -m | samtools sort | samtools markdup -sJonathan Manning
04/14/2026, 4:00 PMJonathan Manning
04/14/2026, 4:01 PMPhil Ewels
04/14/2026, 4:03 PMJonathan Manning
04/14/2026, 4:03 PMPhil Ewels
04/14/2026, 4:03 PMJonathan Manning
04/14/2026, 4:05 PMJonathan Manning
04/14/2026, 4:15 PMAlexander Noskov
04/15/2026, 12:18 AMSigh. Rust rewrite of sambamba??Why not. It'll take more than 24 hours thou π
Felix Krueger
04/15/2026, 6:51 AMsamtools sort -n it sorted R1 and R2 in a random order, while samtools sort -n consistently sorts the read in the R1 followed by R2 order (taking the FLAG into account). This was an issue of methylation extraction back in this issue).Alexander Noskov
04/15/2026, 6:53 AMPhil Ewels
04/15/2026, 7:03 AMPhil Ewels
04/15/2026, 7:04 AMAlexander Noskov
04/15/2026, 7:06 AMPhil Ewels
04/15/2026, 7:07 AMPhil Ewels
04/15/2026, 7:08 AMAlexander Noskov
04/15/2026, 7:08 AMPhil Ewels
04/15/2026, 7:08 AMPhil Ewels
04/15/2026, 7:09 AMFelix Krueger
04/15/2026, 7:09 AMPhil Ewels
04/15/2026, 7:10 AMAlexander Noskov
04/15/2026, 7:15 AMAlexander Noskov
04/15/2026, 7:15 AMHas anyone else already started a Rust project for it?Claude havent found any
Jonathan Manning
04/15/2026, 7:50 AMNote that markdups is something we need to be super careful with in a rewrite. It's more critical than QC for example, as it's directly affecting the data.Definitely this.
I contacted the creator Artem Tarasov, and he told me it was a student's assignment, and he thinks that we should go with samtools.Scary how often folks rely on software with this sort of history (cue the XKCD cartoon with the software stack) At the risk of putting a damper on things, I'm not convinced there's room in the BAM/SAM handling ecosystem for a rewrite tbh, these are core things everyone knows and relies on, it's hard to swap out something like that in a widely used pipeline like #CE8SSJV3N without scaring folks. At the very least the burden of proof would be REALLY high, and there would have to be very dramatic gains for the overall pipeline execution time for us to want to adopt it, which I'm not sure is the case here.
Alexander Noskov
04/15/2026, 10:10 AM