You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
immunum v2.1.0
What's changed
Added
Documentation: a Getting started page (install for every interface, supported Python versions and
wheel platforms, and which interface to use), a Concepts and FAQ page (chains and their aliases and
groups, how the schemes' regions differ, what confidence measures and how to pick min_confidence, prefix and postfix, the domain search and input rules), guides for the command
line (input formats, every TSV column and JSON field, how --all-domains shifts the columns, exit
statuses), JavaScript and Rust, one Errors page for every interface, the TypeScript declarations
as the JavaScript API reference, the per-scheme accuracy from BENCHMARKS.toml on the benchmarks
page, and Citation and Contributing pages.
CITATION.cff, so GitHub offers "Cite this repository", and CONTRIBUTING.md with the
development setup and project layout that were in the README.
The documentation's demo accepts pasted FASTA, re-numbers when a setting changes, runs on
Ctrl/Cmd+Enter, copies and downloads results as TSV or JSON, makes a shareable link, compares the
schemes' regions per domain, explains how to read the result, fits a phone screen and shows
keyboard focus on its chain and scheme buttons.
Changed
The consensus sequences behind the scoring matrices are built from IMGT/GENE-DB germlines (release
202641-7, CC BY 4.0) instead of RepSeqIO germlines numbered with AntPack. V genes keep IMGT's own
gapping, the CDR3 of each V-J germline is placed by the IMGT rule, and the antibody germlines come from
human, mouse, rat, rabbit, rhesus, pig and cow, plus alpaca for IGH; TCR germlines from human and mouse. uv run --no-sync python -m scripts.generate_consensus downloads the data and regenerates the files; resources/consensus/README.md describes the method and the IMGT publications to cite, and resources/consensus/germlines.tsv lists the alleles used.
Alignment confidence values shift slightly for the same input, since the scoring matrices changed; for
example IMGT 113 of IGL now counts towards the confidence score.
TRD numbers the TRDV genes with IMGT's gapping: human TRDV1 has the CDR2-IMGT QGS (56, 57, 65) and
residues at 69-72, as in IMGT's allele alignment of TRDV1 and the IMGT region boundaries IgBLAST ships.
The TRD validation fixture (fixtures/validation/tcr_D_imgt.csv, all TRDV1) followed ANARCI, with the
CDR2 at 56-59 and 63-65 and nothing at 69-73; its positions 56-74 now follow IMGT. Across the other
chains and schemes, BENCHMARKS.toml moves by at most 0.27 percentage points of perfect sequences.
The insertion penalty at the CDR centers (IMGT 32/33, 60/61, 111/112) is -1.9 instead of -2.0, which
the IMGT-derived consensus needs to keep numbering bovine ultralong CDR3s (PDB 4k3e) through FR4.
The README is a quickstart for each interface; the details moved to the documentation site, where
each topic now lives on one page. The site has a description for link previews, "edit this page"
links, and no previous/next links on the Demo, Benchmarks and Contributing tabs, where they led
to other tabs' pages.
The crate's documentation link points to docs.rs.
Development needs Python 3.11 or newer (the package still supports 3.10): the dev and benchmark groups require it, so the lock only holds a filelock release with the fixes for its
security advisories. CI runs the full checks on 3.11 and the test suite on 3.10.
Removed
scripts/generate_vj_combinations.py and scripts/utils.py, the RepSeqIO/AntPack consensus pipeline.
Fixed
Documentation: the Polars page's examples ran nothing but the error example; it now has a
runnable example with its real output. The Polars advice to find successes by a null error
counted null sequences as successes. The benchmarks page names the versions of the tools it
compares and says how each plot's error bars are computed.
IMGT: an antibody whose CDR2 has the conserved Ile 56 mutated got a gap at FR2 54 and an extra
CDR2 residue. A mouse IGHV2 VH with G54V and Ile 56 to Asn numbered its CDR2 as VNWAGGST instead
of NWAGGST. A gap anywhere in antibody FR2 now costs at least as much as one at a conserved
position.
A kappa chain with an extra FR1 residue was numbered from its second residue: the first went into
the prefix and FR1 shifted by one. An insertion in FR1 now costs -40 instead of -50, so residue 1
is numbered and the extra residue becomes an insertion.
The alignment keeps the J motif that opens FR4: Trp or Phe at IMGT 118 and Gly at 121. A His
tag after a short FR4 was numbered as FR4, with the domain's own FR4 in CDR3, and a VHH with a long
CDR3 followed by a linker and a constant region stopped at IMGT 105, without its CDR3 and FR4.
The lambda chain in the test suite had its J region in CDR3 and the constant region's GQPKA in
FR4; it now has FGGGTQLTV as FR4 and GQPKA in the postfix. Matching the motif residues scores
8 points more each, and trailing residues are clipped when that scores 42 points higher instead of
50. Confidence rises slightly for chains that match the motif.
Install
Python — pip install immunum==2.1.0, or pip install "immunum[polars]==2.1.0" for the Polars plugin
CLI — uvx immunum@2.1.0 --help, or cargo install immunum@2.1.0
JavaScript / WASM — npm install immunum@2.1.0
Rust — cargo add immunum@2.1.0
Build info
Python wheels: Python 3.10+ (abi3) — Linux x86_64 and aarch64 (manylinux), macOS Apple Silicon and Intel, Windows x64