Skip to main content

bioscoring-shared-FB

Flock Bio shared scoring + calibration infrastructure library (flockbio_bioscoring). The 5th repo in the Flock Bio transcript-design suite.

This library packages the common machinery used by the four sub-pipelines + the orchestrator:

  • DatasetSpec dataclass + sentinel framework for offline calibration runs
  • License-aware download helpers with retries + EBI tier-0 probe
  • Generic FASTA / CSV / GTF parsers
  • Bootstrap LODO + null-model + ship gate framework
  • NNLS calibration helpers
  • HTML / PDF report scaffolding (Jinja2 + matplotlib + Chromium)

Per the Rule of Three (L21 in docs/CROSS_PIPELINE_LESSONS.md; canonical here since 2026-05-12, moved from codon's docs/), this library is extracted from the already-shipping codon

  • 5'UTR + 3'UTR pipelines after they paid for the infrastructure once each.

Status

✅ v0.4.0 shipped (Sprint 4 Day 8). All three extraction tiers are complete; the library is feature-complete for the Sprint 4 scope. Next milestone is v1.0.0 after the four consumer pipelines migrate from their inline copies to the shared lib (see docs/CONSUMER_MIGRATION_PLAN.md + docs/CONSUMER_MIGRATION_STATUS.md).

Tier Sprint 4 days Modules Status
1 Days 1-3 DatasetSpec + sentinels + download + parsers + cache + EuropePMC tier-0 ✅ shipped (v0.1.0)
2 Days 4-5 NNLS + ship gate + upload-success-gate + merge_artifacts + artifact_schema ✅ shipped (v0.2.0)
3 Days 6-7 HTML / PDF report scaffolding (style + figures + chromium_pdf + templates_loader) ✅ shipped (v0.3.0)

Strategic position

Repo Role Status
flock-bio/codon_optimization-FB Codon optimization ✅ shipping v2.8.5 (Tier 3 first-pass migrated)
flock-bio/5utr_optimization-FB 5'UTR design ✅ shipping v2.8.24 (Tier 2 + Tier 3 first-pass migrated)
flock-bio/3utr_optimization-FB 3'UTR design ✅ shipping v0.3.1 (Tier 2 + Tier 3 first-pass migrated)
flock-bio/promoter_design-FB Tissue-specific promoter design ✅ shipping v0.5.0 (adopted shared lib from start; Phase D phase_d_empirical)
flock-bio/bioscoring-shared-FB (THIS REPO) Shared library ✅ v1.0.0 on PyPI (2026-05-12) — first stable API after 4-consumer first-pass migration
flock-bio/transcript_design-FB Orchestrator ✅ v1.0.0 GA shipped 2026-05-12 — adopted flockbio_bioscoring>=1.0.0,<2.0.0

Installation

pip install flockbio_bioscoring  # once published

For development:

pip install -e .[dev]
PYTHONPATH=src python3 -m pytest tests/ -q

Documentation

  • CLAUDE.md — Claude Code guidance for this repo.
  • CHANGELOG.md — chronological history of behavior changes.
  • docs/INTEGRATION_GUIDE.md — API surface reference + recipes for consuming pipelines to migrate from inline copies to the shared library.
  • docs/CONSUMER_MIGRATION_PLAN.md — master migration plan for the 4-consumer migration (binding order, per-consumer effort, Step 0-9 recipe).
  • docs/CONSUMER_MIGRATION_STATUS.md — live status tracker for the 4-consumer migration.
  • docs/CALIBRATION_RUNBOOK_TEMPLATE.md — template for consumer-side CALIBRATION_RUNBOOK.md (Phase D / OFFLINE calibration operator doc; consumers extend with pipeline specifics).
  • docs/CROSS_PIPELINE_LESSONS.md — canonical strategic doc for the 6-repo suite (Strategic North Star + Part I L1-L26 lessons + Part X per-pipeline kickoff guides + Part XI binding I/O contracts). Moved here from codon's docs/ on 2026-05-12 per L21. L22 + L23 added 2026-05-20 from the 3utr Griesemer 2021 wiring saga; L24 added 2026-05-20 from the orchestrator promoter-v1.0.0 vendor-sync doc- drift (artifact-truth supersedes CLAUDE.md-prose); L25 added 2026-05-20 (authorship verification before cross- pipeline attribution; operationalized in v1.1.0 l20_audit_runner); L26 added 2026-05-20 (PMID-to-paper consistency before attribution work; operationalized in v1.2.0 claimed_title_substring + claimed_first_author kwargs).
  • docs/CYPHERBIO_PIPELINE_PLAYBOOK.md + docs/CYPHERBIO_PLAYBOOK_v2.md — canonical CypherBio packaging conventions (moved here from per-consumer copies on 2026-05-12 per L21).

License

The library code is licensed under the MIT license (see LICENSE). License terms for bundled / downloaded datasets are tracked separately in LICENSES.md per the L20 4-layer audit pattern (article + supplementary + deposit + cross-walk).

Metadata

Release files for flockbio-bioscoring 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flockbio-bioscoring 1.4.0
File Size Uploaded Provenance Actions
flockbio_bioscoring-1.4.0.tar.gz 111.1 kB Without provenance Details for flockbio_bioscoring-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flockbio-bioscoring 1.4.0
File Interpreter ABI Platform Actions
flockbio_bioscoring-1.4.0-py3-none-any.whl Python 3 none any Details for flockbio_bioscoring-1.4.0-py3-none-any.whl

Total release size: 201.5 kB

Release files / flockbio_bioscoring-1.4.0.tar.gz

Download URL flockbio_bioscoring-1.4.0.tar.gz
Size 111.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c5e25086bdfbadbd42a5d61114e9d8050fdeec76aae384bacb00b6de82ca7cee
BLAKE2b-256 checksum
How to use checksums
f984e17d2095228b4265bac8e9241ef0944189c2966f8deaa25e2afca468fda1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / flockbio_bioscoring-1.4.0-py3-none-any.whl

Download URL flockbio_bioscoring-1.4.0-py3-none-any.whl
Size 90.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4aa3a5b207bd6e9e44a85309d741df105e95da266fd963e1ef97068ccab53016
BLAKE2b-256 checksum
How to use checksums
aeb6adf25d55e47f2e6ab952034758ef3354bcd4224a207ed412fd0a4ac0f78e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for flockbio-bioscoring 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page