Skip to content

uLTRA 0.3.0

Latest

Choose a tag to compare

@ksahlin ksahlin released this 07 Oct 17:34
· 14 commits to master since this release

uLTRA is now written in Rust. Same command line and output files, so existing pipelines do not need editing. A minimap2 binary is the only dependency.

Install

curl -L https://github.com/ksahlin/ultra/releases/download/v0.3.0/uLTRA-0.3.0-macos-arm64.tar.gz | tar xz

Pipe it — do not download the archive and then extract it. On current macOS, extracting a downloaded archive marks the binary with com.apple.quarantine and Gatekeeper kills it on sight with no message. Streaming straight out of curl never writes a file carrying the attribute. If you end up with a blocked copy anyway: xattr -d com.apple.quarantine ./uLTRA.

The Linux binaries need only glibc 2.17 (RHEL/CentOS 7, 2012). Checksums are in SHA256SUMS.

Speed

Against the Python implementation, measured sequentially on an idle 16-core machine:

corpus mode --t Python Rust
sirv-10k --disable_mm2 8 4.3 s 1.5 s 2.9x
sirv-10k minimap2 3 10.7 s 5.8 s 1.8x
droso-20k --disable_mm2 8 9.2 s 6.5 s 1.4x
droso-20k minimap2 3 20.8 s 14.4 s 1.4x
droso-200k --disable_mm2 8 46.5 s 25.9 s 1.8x
droso-200k minimap2 8 72.1 s 40.0 s 1.8x

The low end is droso-20k, where the port's fixed startup cost is a large share of a 10-second run; it amortises, and 1.8x is what to expect on a realistic Drosophila run.

Memory

The Python implementation starts one process per core and each re-loads the index; the port shares one immutable index across threads. Peak RSS summed over the whole process tree:

corpus --t Python Rust
sirv-10k 3 1139 MB 1077 MB 1.1x less
sirv-10k 16 2845 MB 1078 MB 2.6x less
droso-200k 3 5182 MB 3676 MB 1.4x less
droso-200k 8 10376 MB 3841 MB 2.7x less

From 3 to 8 threads the Python implementation doubles, 5182 MB to 10376 MB, while the port moves 4.5%. On 200 000 Drosophila reads at --t 8 that is 10.4 GB against 3.8 GB.

Accuracy

corpus mode byte-identical the alignment differs
sirv-100k --disable_mm2 99.89% 24 (0.024%)
sirv-100k minimap2 92.09% 5 (0.005%)
droso-200k --disable_mm2 88.09% 462 (0.231%)
droso-200k minimap2 91.07% 48 (0.027%)

Over 97% of all differences are reporting-only — QUAL orientation, SEQ strand, XA ordering — and of the different-locus cases on Drosophila, 371 of 387 are equal-scoring multi-mappings. Where the alignment genuinely differs the port is slightly ahead: +3.06% by uLTRA's own scoring without minimap2, clipping fewer bases than the reference.

Every input read now appears in reads.sam; the Python implementation silently discards the ones minimap2 could not place. RUST-PORT.md has the full breakdown, including what those recovered reads actually are.

Notes

The Python implementation remains in the repository as the reference the Rust version is verified against — see INSTALL-python.md.

PORTING.md records the engineering: 50 numbered findings covering every deliberate divergence, every bug found in either implementation, and three replacement aligners measured and rejected.