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

pirl-unc / tcrsift / 26644524356
84%

Build:
DEFAULT BRANCH: main
Ran 29 May 2026 02:58PM UTC
Jobs 4
Files 31
Run time 1min
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

29 May 2026 02:56PM UTC coverage: 78.48% (+0.1%) from 78.367%
26644524356

push

github

web-flow
2.2.0: fix #56 — structured db_match_score with audit columns (#114)

Adds a composite confidence score and the four sub-signals that feed
it so downstream code can filter by quality (``score >= 0.6``)
instead of treating every β-only fallback the same as a high-quality
αβ exact match.

## New output columns

  - ``db_match_score`` ∈ [0, 1] — composite from the signals below.
  - ``db_v_gene_agreement`` ∈ [0, 1] or None — fraction of matching
    DB rows whose ``v_beta`` matches the clone's ``beta_v_gene``
    (allele suffix stripped, case normalised).
  - ``db_n_studies`` — distinct ``reference`` ids across matching
    rows. Single-study hits get a confidence discount.
  - ``db_category_votes`` — ``"viral:0.67;tumor_self:0.33"`` style
    string summarising the per-category vote shares (paired with the
    pre-existing #83 ``db_category`` / ``db_category_dominant`` /
    ``db_category_detail`` / ``db_category_counts`` audit set).

## Score formula

Documented in ``_compute_match_score``. Base score per strength
label (1.0 αβ exact, 0.7 β-only), multiplicative penalties:
  - 0.7× for ``_near`` (Lev-1 fuzzy β, #57)
  - 0.5× for ``_cross`` (non-human host, #83 / #54)
  - 1 − 0.3 × (1 − v_gene_agreement) for V-gene disagreement
    (1.0 when unknown — neutral)
  - 1 − 0.3 / max(n_studies, 1) — 1 study → 0.7, 2 → 0.85, 3+ → ≥0.9

Score clamped to [0, 1], rounded to 3 decimals for CSV stability.

## DB loader plumbing

VDJdb's paired (``vdjdb_full.txt``) and long (``vdjdb.txt``) formats
now expose V-gene calls as ``v_beta`` / ``v_alpha`` standardised
columns. Long format uses ``v.segm`` for V-gene (per-chain row); the
paired format uses ``v.beta`` / ``v.alpha``. IEDB / CEDAR formats
don't currently carry V-gene info — when ``v_beta`` is absent or
NaN across the match set, ``db_v_gene_agreement`` stays None and
the score uses the neutral V-factor.

## Out of scope

MHC compatibility (``db_mhc_agreement`` in the original issue
proposal) requires plumbing do... (continued)

6772 of 8629 relevant lines covered (78.48%)

3.14 hits per line

Coverage Regressions

Lines Coverage ∆ File
32
93.76
0.25% annotate.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.12 - 26644524356.1 29 May 2026 02:58PM UTC 31
78.47
GitHub Action Run
2 python-3.9 - 26644524356.2 29 May 2026 02:58PM UTC 31
78.44
GitHub Action Run
3 python-3.10 - 26644524356.3 29 May 2026 02:58PM UTC 31
78.47
GitHub Action Run
4 python-3.11 - 26644524356.4 29 May 2026 02:58PM UTC 31
78.47
GitHub Action Run
Source Files on build 26644524356
  • Tree
  • List 31
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26644524356
  • 88877713 on github
  • Prev Build on main (#26642287264)
  • Next Build on main (#26647663939)
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