Skip to content

v8.1.0

Choose a tag to compare

@michael-denyer michael-denyer released this 14 Sep 12:11
· 189 commits to master since this release
32d12dd

Removed

  • run_lmm_association_prepared and the prepared-genotype branches of the
    single-phenotype runner. run_lmm_association_group_prepared is the one
    prepared entry point.
  • jamma.lmm.dispatch.select_current. Callers pass
    accel=accel.available() to select_dispatch_path.
  • eigen_cache_is_valid. The LOCO driver reads the manifest once and calls
    eigen_cache_manifest_is_valid; the read-then-validate combination now
    lives only in its tests.

Changed

  • The README performance table and docs/PERFORMANCE.md carry the 2026-09-14
    idle-machine benchmark; the provisional 2026-09-09 run is superseded and kept
    in docs/benchmarks/.
  • ToleranceConfig.beta_se_floor (1e-4) adds an absolute floor of that many
    standard errors to the beta comparison in compare_assoc_results and the
    benchmark output checks. A relative tolerance is meaningless at a null
    effect: rs13475789 differed by 1.8% on a beta 1e-4 of its standard error.
    Largest observed difference on mouse_hs1940 is 7.7e-6 standard errors.
  • Filtered streaming kinship (-gk 1, -gk 2, and -lmm without -k) reads
    the BED once. Each chunk's MAF, missing-rate and monomorphism filter is
    decided from the chunk's own statistics before its surviving columns are
    accumulated, in place of a statistics pass followed by an accumulation
    pass, and normalization divides the accumulator in place, so the kinship
    phase holds the one matrix the memory estimator budgets. With the native
    snp_stats.c kernel the matrix is bit-identical (78 committed digests plus
    12 covering the phenotyped filter basis, -miss, -ksnps and chunk size);
    the saving is one read of the genotype file, about 40 ms on mouse_hs1940.
    Under the NumPy statistics fallback (JAMMA_FORCE_NUMPY_FALLBACK) the
    per-chunk float64 mean can retain a SNP whose float32 whole-file mean fell
    just below the MAF threshold, which changes the SNP set rather than a last
    bit.
  • The parallel text matrix writer formats each row in slices of 4,096 values
    with one % call per slice instead of one per value. Output bytes are
    unchanged; the worker phase runs 1.6x faster per value, and a wide row
    still holds at most one slice of NumPy scalars at a time. %r output and
    delimiters containing % are unchanged from before, pinned by tests to the
    per-value worker's bytes.
  • scripts/bench_all_backends.py and scripts/bench_loco.py time complete
    child processes from PLINK input to written association files for every
    backend, verify each run's output against the first run within the
    validation tolerances, rotate backend order between repetitions, and save
    raw repetitions with --json. A failed command or comparison produces no
    table. The README and docs/PERFORMANCE.md mark the 2026-09-09 timings as
    provisional pending an idle-machine rerun; earlier small-scale comparisons
    move to docs/PERFORMANCE_HISTORY.md.
  • compare_assoc_results compares AF as reported instead of folding both
    sides to MAF. The fold dated from when JAMMA wrote MAF; it now writes the
    counted-allele frequency, so the fold could hide an allele flip.

Added

  • JAMMA_LOCO_WORKERS keeps that many chromosome eigendecompositions in
    flight, capped by available memory, chromosome count and physical cores.
    The default remains one. Results arrive in chromosome order, and cache
    publication still requires the complete run.

Fixed

  • Ctrl-C during a LOCO eigendecomposition ends the run at once again. The
    eigen workers are daemon threads fed by a queue, so a KeyboardInterrupt
    on the consumer's thread no longer joins a solve still inside LAPACK, the
    behaviour JAMMA had before the worker pool and the one GEMMA has on
    SIGINT. Every other exit still joins the workers.
  • LOCO eigen workers no longer race association over the process-wide BLAS
    limit. One scope, entered on the consumer's thread, wraps the whole eigen
    stream; workers never change limits, and association's own scope nests
    inside it between chromosomes, so every limit change happens on one thread
    in nested order and the prior limit is restored on completion, failure and
    early close. Solves keep overlapping association, as they did before the
    batch barrier that briefly replaced this: six-worker LOCO on mouse_hs1940
    went from 2.11s under the barrier to 1.57s, byte-identical output.
  • Worker memory pricing counts each input matrix once: the driver peak
    already holds it. The planner uses a bounded search even for very large
    requests.
  • _computed_eigen_pairs no longer calls gc.collect() after each
    sequential solve. The call dated from the first LOCO implementation;
    NumPy arrays free on the last reference and the solve holds no cycle.
  • Thread counts are logged after execution planning. Association threads:
    reports the selected rotation budget and C workspace count;
    LOCO workers: reports capped concurrency. The startup banner identifies
    backends without claiming unresolved counts. Accelerate is named even
    when threadpoolctl cannot detect it, and unenforceable limits are labeled
    uncontrolled.