Skip to main content

hitlist

Hitlist 2.0 is a verified evidence store for immune and nonimmune training data. The evidence store guide describes one catalog, query and recipe API across MHC, T-cell, bulk MS, expression, source claims and lineage. Assay results, numeric measurements and contextual claims keep their own grains.

Tests PyPI

A curated, source-preserving evidence system for model training.

Requires Python 3.11+ and pandas 3+. Hitlist uses pandas' default string dtype without changing global pandas options. CI checks both pandas 3.0.0 and current compatible releases.

from hitlist import EvidenceStore

store = EvidenceStore.open("/path/to/verified-evidence-package")
print(store.catalog()["schema_version"])
print(store.query("arm_factor", select=["arm_id", "factor_type", "factor_value"],
                  where={"factor_type": "knockout_genes"}, limit=5).table)
print(store.query("bulk_numeric_measurement",
                  select=["measurement_id", "quantity_scale", "quantitative_value"],
                  where={"quantity_scale": "abundance_percentile"}, limit=5).table)
store.materialize("training-recipe.yaml", "/path/to/training-output")

The matching CLI is hitlist evidence catalog, hitlist evidence query, hitlist evidence materialize and hitlist evidence verify. Each command takes the same package path. Queries expose logical fields when source meaning and grain match; every physical typed column is also accessible as native.<column>. Related values require named joins, and many-valued relations remain separate evidence rows. The catalog reports direct, related and unavailable fields, source scope, row counts and ingest requirements. A recipe writes accepted, excluded and ambiguous rows with counts, reasons, lineage, contributor keys and a hash-bound manifest. It never rewrites source evidence. The reference-augmented package adds source-backed mouse species roles and exact peptide-to-parent alternatives while retaining every original assay and numeric cell.

Start here

  • Original perturbation quantities: same-plex treatment/control reporter signals, source-qualified contrasts and Presto admission boundaries.
  • Evidence store guide: catalog, grain-safe queries, named relationships, recipes and verification.
  • Pinned source and count audit: 53 materialized evidence types, 32 reconciled baselines and field disposition.
  • Migration history: source generations and scientific decisions behind the current package.
  • Purified digestion evidence: original MS1, acquisition, substrate and conflict relations with training admission limits.
  • Binding protocol review: source-scoped assay conditions, explicit unknowns, and complete binding-row reconciliation.
  • Legacy 1.x README: historical indexes and commands. Its sample-level and training-readiness descriptions were superseded by the verified corpus audits and should not be used as current labels.

Breaking release

2.0.0 removes several top-level loaders, exporters and static catalog helpers. Open a verified package through EvidenceStore for current evidence requests; use the catalog to see each field's actual readiness and required assay fields. The original source records and typed relation files remain in the verified evidence package; older module-level APIs remain in the Python distribution for migration and audit. Training recipes retain candidate decisions, source contributors and unresolved context, so a new task does not silently turn evidence into a label.

Locating the MHC ligand MS table

Starting with Hitlist 2.50.0, new dataset generations store positive MHC ligand MS observations in mhc_ligand_ms_observations.parquet. Each generation's .datacache-manifest.json lists its physical file and SHA-256. Previous dated generations use observations.parquet. Resolve the table with from hitlist.dataset import bundle_path and bundle_path("ms", bundle=directory, must_exist=True), or use hitlist path ms for the active generation. Both versions store one copy. Readers that construct a filename directly must switch to the resolver before opening new generations. Frozen evidence packages retain their own versioned native partition names.

Hitlist 2.53 can register the original IEDB and CEDAR MHC export ZIPs directly. Each archive must contain the single mhc_ligand_full.csv export. The builder streams logical CSV records and stores the SHA-256 of the registered input. This avoids staging two expanded copies of the exports for a full build.

Querying MS observations

For Shapiro’s HAP1 study (PMID 40113210), the MS table records which peptides were detected in each condition. From Hitlist 2.52, curated_sample_typing identifies the candidate presenters from the named sample. The measured peptide restriction remains blank. The B2M background-control detections retain empty candidate sets.

For KO/WT response magnitudes and their contributing replicates, open the HAP1 quantitative recipe. For Nanaware lymph and dendritic-cell measurements, use the Nanaware quantitative source and recipe, which preserve charge features, preparation and acquisition provenance.

load_observations and load_binding accept the same filters and column projections for a local bundle and a verified MHC evidence package. Pass package=path or set HITLIST_EVIDENCE_PACKAGE. Gene queries use the selected source's peptide mappings. Package results carry the manifest SHA-256 in df.attrs["evidence_package_manifest_sha256"]. To refresh the local bundle before querying, call ensure_observations_built(quiet=True).

Query need Observation fields
Peptide and assay peptide, peptide_modifications, has_ptm, assay_modality, ms_outcome_status, is_ms_observation
Study and source pmid, source, assay_iri, provenance_id, epitope_mutation_raw
MHC restriction mhc_class, mhc_species, mhc_restriction, mhc_allele_set, mhc_allele_provenance, restriction_evidence, serotypes, serotype_source, is_monoallelic
Sample context source_tissue, cell_line_name, cell_type, disease, src_cancer, src_ex_vivo, src_cell_line, src_healthy_tissue, src_healthy_thymus, src_healthy_reproductive, antigen_expression_mode

Use serotypes for the ordered semicolon-delimited memberships. The loader also serves the first membership as serotype. The writer retains the singular field if any source row would lose information. Raw PTM text, reported MHC class, host species and antigen-source species retain independent meanings. Antigen expression mode describes the experimental sample. When a sample index predates this field, rebuild the bundle to populate its curated modes. Observation queries can recover the reviewed arms from older native row fields.

find_mutant_ligands("TP53:R175H") returns measured ligands for a requested substitution. With no mutations, it searches host-reference mismatches seen in cancer in at least two PMIDs and excludes peptides observed in healthy compartments. Each row includes the wild-type sequence, flanks, one-based protein position, zero-based peptide offset and separate mutant and wild-type MS counts. A sequence match is a candidate origin. A CEDAR mutation claim requires an explicit source field. In an older export without that field, an empty claim gives no information about mutation status.

hitlist qc mutant-ligands --mutations TP53:R175H,KRAS:G12D

Host protein coordinates

For bundles built with mappings in 2.51.0, hitlist.host_flanks.load_host_protein_context(peptides, proteome_id="Homo sapiens", bundle=directory) reads the reference sequence captured by the mapping worker. Each distinct mapped vertebrate protein is stored once in host_protein_sequences.parquet. The loader checks its SHA-256 and the peptide at the recorded zero-based position. It reports reference_status, nullable N/C terminal flags and n_mappings. Older generations expose their mapping coordinates and mark the sequence as unavailable.

Metadata

Release files for hitlist 2.53.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 hitlist 2.53.0
File Size Uploaded Provenance Actions
hitlist-2.53.0.tar.gz 8.3 MB Without provenance Details for hitlist-2.53.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hitlist 2.53.0
File Interpreter ABI Platform Actions
hitlist-2.53.0-py3-none-any.whl Python 3 none any Details for hitlist-2.53.0-py3-none-any.whl

Total release size: 15.9 MB

Release files / hitlist-2.53.0.tar.gz

Download URL hitlist-2.53.0.tar.gz
Size 8.3 MB
Tags Source
SHA-256 checksum
How to use checksums
6cb5c750f171b2f5fcc602865243cfe18e60663e6fa286507ae46f4a174c3f5f
BLAKE2b-256 checksum
How to use checksums
121ce787ede0963769854655f997f3baf881c4c1a07415c29d201b9697e799b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / hitlist-2.53.0-py3-none-any.whl

Download URL hitlist-2.53.0-py3-none-any.whl
Size 7.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0a49f9271f0c127c960adee1b16982415ee52740ba8db00e3c385b1efe6e4d7c
BLAKE2b-256 checksum
How to use checksums
75a8e07525c0c9c6097867684396dad50bb1d4803b623faad18fdb7a5366d2cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for hitlist 2.53.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.

Release history Release notifications | RSS feed

This release

2.53.0 This release

2 release files No provenance

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