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.
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 hitlist.bundle_path("ms", bundle=directory, must_exist=True) or
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.
Querying MS observations
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.51.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hitlist-2.51.0.tar.gz | 8.3 MB | Without provenance | Details for hitlist-2.51.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hitlist-2.51.0-py3-none-any.whl | Python 3 | none | any | Details for hitlist-2.51.0-py3-none-any.whl |
Total release size: 15.9 MB
Release files / hitlist-2.51.0.tar.gz
| Download URL | hitlist-2.51.0.tar.gz |
|---|---|
| Size | 8.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61653c51d4e75062a1d3997c5095b3fa0c0a21effe21012a5ced34107f20a76a
|
|
BLAKE2b-256 checksum How to use checksums |
10932d5169eaca0a2c3ce4a39d756decb72b14a29f1cf8de7ea8b40791bcc60d
|
| 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.51.0-py3-none-any.whl
| Download URL | hitlist-2.51.0-py3-none-any.whl |
|---|---|
| Size | 7.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa58b49a13a3cf2a500ea55793ad15788f50d46cf96401a87611723bc39aac02
|
|
BLAKE2b-256 checksum How to use checksums |
4c3371555888383cf274d615a20d02f13929d3af0315e9d8bda3e3066e93cefd
|
| 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.51.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.