Skip to content

Kalign 4.0.0

Latest

Choose a tag to compare

@TimoLassmann TimoLassmann released this 12 Nov 22:48
4f9b95e

Kalign 4.0.0

Kalign is a fast multiple sequence aligner for protein, DNA and RNA.

What's new

Two modes

  • --mode fast (default): one alignment, as fast as before.
  • --mode accurate: five alignments combined into a consensus, with a
    confidence value for every column. More accurate, slower; up to 5,000
    sequences. The confidence measures how well the five alignments agree,
    an idea that comes from MUMSA
    (Lassmann & Sonnhammer 2005).

Protein and DNA/RNA each have their own settings, chosen automatically
from the input. Use --type protein|dna|rna to set the type yourself.

Runs on any x86-64 computer
One binary runs on every x86-64 CPU, old or new, and uses AVX2 automatically
where the CPU has it. The 3.6.0 Linux wheels crashed on CPUs without AVX2
(#46); this is fixed. Alignments are identical on every CPU.

Threads

  • Built-in thread pool; accurate mode now scales well with more cores.
  • Command line: uses all cores but one (at most 16) by default; set with -n.
  • Python: 1 thread by default; set with n_threads= or kalign.set_num_threads().
  • Results are identical whatever the number of threads.

Python

  • pip install kalign-python (Python 3.11 or later).
  • Wheels for Linux x86-64 and macOS (Intel and Apple silicon).
  • Errors now come with a clear message instead of a crash.

Fixes

  • Crashes on malformed input (a single sequence, empty sequences, unusual
    characters) are now clear error messages.
  • Accurate mode no longer crashes on macOS for very similar sequences
    with several threads.
  • Comparing alignments (kalign_msa_compare and Python compare) now
    matches sequences by name.

Changes to check when upgrading

  • Gap-penalty options (--gpo, --gpe, --tgpe) work with --mode fast
    only; with accurate they are an error.
  • --type takes auto, protein, dna or rna; the old values
    internal, divergent and pfasum* are gone.
  • Supported platforms: Linux and macOS.
  • Building from source: OpenMP is no longer used; the CMake options
    ENABLE_SSE and ENABLE_AVX are gone. Build with the defaults (no
    -DENABLE_AVX2=OFF, no -mavx2).

Install

  • Python: pip install kalign-python
  • From source: mkdir build && cd build && cmake .. && make && make install