Skip to content

Releases

uLTRA 0.3.0

Choose a tag to compare

@ksahlin ksahlin released this 07 Oct 17:34

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.

v0.1

Choose a tag to compare

@ksahlin ksahlin released this 17 May 12:50

Major update. Previous versions of uLTRA had several bottlenecks which made is infeasible for mapping larger datasets (number of reads). Most notable updates:

  • A faster and more memory-efficient seed finder namfinder. (>10x faster than previously used MEM finders)
  • Removed loading reads/SAM files into memory on several places and instead stream over the files (Previously a sam file of alignments was loaded into RAM)
  • Compressing intermediate output.

This version has been tested on the datasets I used in the publication of uLTRA from 2021. The largest dataset in the evaluation is the IsoSeq Alzheimer dataset (4.5M reads). On the Alzheimer dataset using 19 cores, peak memory usage is now less than 30Gb (previously ~100Gb), the runtime is 3h 40m (previously 5h 40m), and disk usage has gone down due to compressed files (I have not measured the reductions in size).

The accuracy of v0.1 is only a very small fraction lower than previous version (v0.0.4.2) on the tested simulated datasets. The non-identical output to previous versions is due to the new seed finder. The boost in aligning to, e.g., small exons is still there compared to other aligners.

v0.0.4.2

Choose a tag to compare

@ksahlin ksahlin released this 26 Oct 15:50

Fixes issues #17 and #2.

v0.0.4

Choose a tag to compare

@ksahlin ksahlin released this 21 Sep 08:13
  • Fixed issue #4
  • Added an option --use_NAM_seeds which changes the seeding from MEMs to NAMs (with strobemers). NAM seeding makes uLTRA faster and produces smaller intermediate files. The memory usage with --use_NAM_seeds is "fixed" regardless of the number of cores/threads (about ~80-90Gb for human genome) compared to default option which grows with number of cores. Therefore, using --use_NAM_seeds results in lower peak memory usage over the default option if using more than 18 cores, and higher memory usage otherwise. The alignment accuracy is largely the same -- NAM seeds decrease the accuracy of about 0.01%-0.05% compared to MEMs (i.e., 1 alignment in every 2,000-10,000). Due to faster runtime and smaller disk usage, at a cost of high memory usage, I recommend --use_NAM_seeds for large datasets (>5M reads) if running on nodes with >90Gb memory and more than 20 cores.

Version used in published paper.

Choose a tag to compare

@ksahlin ksahlin released this 31 Jul 06:32

This is the version that was used in the paper published in Bioinformatics.

First stable working version of uLTRA

Choose a tag to compare

@ksahlin ksahlin released this 24 Jun 14:09
  • Marks a milestone in the implementation.