• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openvax / varcode / 24672927620
88%

Build:
DEFAULT BRANCH: main
Ran 20 Apr 2026 02:49PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
24672927620

push

github

web-flow
Add StructuralVariant type + opt-in VCF parser (#252/#264) (#331)

Introduce :class:`StructuralVariant` as a :class:`Variant` subclass
that preserves SV-specific fields (``sv_type``, ``end``, breakend
mate, confidence intervals, assembly hook, open INFO bag) instead of
filtering them at load time.

``varcode/structural_variant.py``
  Core data class. Inherits from :class:`Variant` so
  ``isinstance(v, Variant)`` still holds for downstream generic
  variant pipelines. Open hooks for:
  * personalized / full-genome references (reuses ``genome=`` param)
  * long-read / targeted-assembly resolution (``alt_assembly`` field)
  * external callers' extra fields (open ``info`` dict — CIPOS/CIEND/
    HOMLEN/SVMETHOD ride along untouched)
  * external evidence (short-read RNA, SpliceAI) via the existing
    :class:`Outcome` evidence dict, not on the variant itself

``varcode/sv_allele_parser.py``
  Minimal parser for VCF 4.3 §5.4 symbolic and breakend grammar.
  Handles <DEL>/<DUP>/<INV>/<INS>/<INS:ME:ALU>/<CN0>/<CN2>/<CNV>
  plus all four breakend orientations. Unknown symbolic tokens
  collapse to BND with the raw token preserved rather than
  crashing — novel VCF extensions still load.

``varcode/vcf.py``
  ``load_vcf(..., parse_structural_variants=False)`` — opt-in flag.
  Default off preserves the 2.x contract (symbolic alleles filtered
  with a warning). Opted in, the loader returns
  :class:`StructuralVariant` rows alongside normal :class:`Variant`
  rows. The ``*`` spanning-deletion placeholder is still always
  dropped (it's a cross-row reference, not an allele).

Tests: 22 new cases covering SV construction, parser grammar, VCF
loader round-trip. No effect-annotation yet — that lands in PR 10
after ``reference_segments`` in PR 9.

Bump version to 4.3.0.
Source Files on build 24672927620
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #24672927620
  • e414054d on github
  • Prev Build on main (#24672294631)
  • Next Build on main (#24673406583)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc