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

pirl-unc / hitlist / 25143627132
80%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 02:07AM UTC
Jobs 1
Files 25
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

30 Apr 2026 02:06AM UTC coverage: 69.733% (+0.007%) from 69.726%
25143627132

push

github

web-flow
v1.30.6: Cluster canonicals by FASTA in build_peptide_mappings (#107) (#190)

Closes #107.

The cProfile run from #176 showed ``ProteomeIndex.from_fasta`` hitting
the LRU cache 78% of the time (683 hits / 868 calls). The remaining
22% is mostly LRU eviction from interleaved build order:
``build_peptide_mappings`` iterated canonicals alphabetically, but
strain variants that share one underlying FASTA (LCMV / SARS-CoV-2 /
EBV / etc.) aren't always alphabetically adjacent, and the cache
(maxsize=4 since v1.19.2 for memory bounds) holds at most one
canonical's worth of (path, length) entries.

Sort canonicals by ``(group_key, canonical)`` instead, where
``group_key`` is the UniProt ``proteome_id`` for FASTA-backed entries
and the species name for ensembl entries. Same-FASTA strain variants
now land adjacently, so the second through Nth member of a group hits
the cache for all 4 lengths in a row.

No memory cost — cache size unchanged at maxsize=4. The build is
deterministic (within-group ordering is alphabetical by canonical).
Ensembl entries don't share the from_fasta cache so the ordering
benefit only applies to FASTA-backed species, which is the
22%-miss-rate set we care about.

Tests pin the bucketing rules (uniprot proteome_id clusters, ensembl
sorts before uniprot, end-to-end adjacency on a synthetic mixed list).

3419 of 4903 relevant lines covered (69.73%)

0.7 hits per line

Coverage Regressions

Lines Coverage ∆ File
69
27.11
2.34% mappings.py
Jobs
ID Job ID Ran Files Coverage
1 25143627132.1 30 Apr 2026 02:07AM UTC 25
69.73
GitHub Action Run
Source Files on build 25143627132
  • Tree
  • List 25
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25143627132
  • f1436808 on github
  • Prev Build on main (#25142379586)
  • Next Build on main (#25163184658)
  • Delete
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