Repository navigation
Varlens 1.0.0
Varlens 1.0 modernizes the OpenVax dependency stack and adds explicit handling for structural variants and supplied fusion RNA.
The wheel and source archive are available below. PyPI publication is pending project upload access; until then, install the attached wheel with pip install "/path/to/varlens-1.0.0-py3-none-any.whl[fusion]".
Compatibility changes
- Requires Python 3.11+ and pandas 3; updates Varcode, Topiary, mhctools, pysam and related requirements.
- Replaces the removed pandas Panel API with a DataFrame indexed by variant and
(measurement, source)columns. - Uses consistent zero-width interbase insertion coordinates and correct left-anchor/right-flank read evidence.
- Replaces nose with pytest; CI covers Python 3.11–3.14, real reference annotation, and strict documentation builds.
Fixes and new workflows
- Empty/all-filtered variant input produces a header-only CSV rather than crashing.
- Structural VCF alleles survive CSV export/reload with typed event fields and every retained source record, including duplicate calls and caller provenance.
- Unsupported structural annotation/read-count operations fail explicitly instead of misrepresenting interval counts as junction evidence.
- New
varlens-fusionscommand andanalyze_fusion()Python API reuse Isovar reconstruction and Topiary protein-fragment prediction. Install withpip install 'varlens[fusion]'. - Fusion reports preserve event/sample identity, ambiguity, unresolved reasons, and observed junction evidence. NetMHCpan prediction is optional and runs through mhctools; its executable/model data must be installed separately.
- Fixes chromosome aliases/raw-contig access, fractional affinity reannotation under pandas 3, terminal soft-clip alleles, SAM output and read-tag export.
Fusion discovery from arbitrary BAMs, translation directly from structural VCFs, and SV gene/effect/context annotation remain outside this release's supported workflows. See the documentation for explicit limits and input schemas.
Verification
87 tests pass on Python 3.11 and 3.14, including both real NetMHCpan integrations. Strict documentation and package-metadata checks, dependency checks, and installed-wheel CLI smoke tests pass. The Sid catalogue probe retains all 555 input calls (552 structural and 3 literal); supplied fusion regressions preserve coding ambiguity and unresolved outcomes.
Includes #35, #36 and #40. Fixes #32, #33, #37, #38 and #39.