oncoref
oncoref provides curated reference data for cancer genomics and antigen discovery:
cancer-type ontology, RNA-seq cohorts, clean-TPM normalization, tumor mutational burden
(TMB), checkpoint-inhibitor (ICI) response, normal-tissue injury tiers, and proteome-wide
CA, RA, and
CTA classification.
Interactive antigen explorer · Antigen whitepaper · Multi-species whitepaper · Classification rules · Patient profiles & filters · CLI & builds · Sequences & peptide subtraction · Tissue injury tiers · API guide
Antigen Classification
Across 19,893 human protein groups (20,099 Ensembl 115 coding loci), OncoRef classifies 322 CTA, 66 Cancer Antigen only, 146 Reproductive Antigen only, 1,110 Other and 18,249 Unsafe—using the same mathematical screening architecture across human, domestic dog (118 CTAs), and laboratory mouse (8 in vivo CTAs):
- Normal-tissue safety screen: Bulk RNA (GTEx v11, HPA v23), sorted and activated immune subsets,
single-cell clusters, donor-resolved rare-cell UMI atlases (CELLxGENE + Siletti), adult cornea scRNA,
normal protein staining (HPA IHC), and reviewed normal-tissue literature exclude proteins expressed in healthy
adult organs as Unsafe. Proteins with missing coverage, unresolved paralog signals,
unscreened sensory micro-niches, or
Unsafesequence overlap land in Other rather than being treated as safe. - Symmetric 10× enrichment: Against one shared non-thymic healthy baseline H₀ = max(Normal N, Disposable D, 1 TPM), Cancer Antigens (CA) require ≥ 10 × H₀ in a QC-passing in vivo tumor sample and Reproductive Antigens (RA) require ≥ 10 × H₀ in a reproductive or embryonic sample. Proteins passing both routes form the CTA set (311/322 = 96.6% with ectopic activation outside homologous source organs).
- Patient-specific & cross-sex filtering: Biological CTA, CA,
and RA labels record where a protein is expressed, not what a particular patient can
safely lose. Downstream patient protection (
antigens.table("CTA", sex="female" | "male")or--sex female|male) marks reproductive compartments as Protect, Accept loss, or Absent—partitioning all 322 human CTAs into four mutually exclusive host-physiology classes: 222CTA-M(270non-pregnant female-safeCTA-M + CTA-P), 12CTA-F(60male-safeCTA-F + CTA-P), 48 adult-absent pregnancy/peripartumCTA-P, and 40 sharedCTA-MF(cross-sex CTAs, multi-species whitepaper, rules and limits).

Interactive antigen explorer · Antigen whitepaper · Summary figures · Data & downloads · Donor-level rare-cell RNA
Install & Quick Start
pip install oncoref
from oncoref import antigens, cancer_ontology, ici_response
# Cross-species summary, patient-safe antigen filtering, and peptide subtraction
antigens.summary()
female_safe_ctas = antigens.table("CTA", sex="female", ectopic_only=True)
dog_ctas = antigens.table("CTA", species="dog", replicated_only=True)
antigens.explain("PRAME", sex="female")
unique_peptides = antigens.subtract("MAGEA4", sex="female", max_mismatches=1)
# Cancer ontology and ICI response
crc_msi = cancer_ontology.cancer_type_records(subtype_group="MSI", under="CRC")
ici_response.best_available_ici_response("COAD_MSI")
Stack Boundary
- oncoref: empirical facts, source-linked curation, and canonical identifiers
(cancer codes, Ensembl gene IDs, reference expression and normalization, epidemiology, TMB,
ICI response, tissue-injury tiers, and
CA/RA/CTA/Unsafeclassifications). - pirlygenes: curated gene
panels (lineage, TME, surfaceome, therapy signatures) keyed to
oncorefIDs. - trufflepig: per-sample QC, deconvolution, scoring, and sample-level interpretation.
Data Domains
| Domain | Preferred modules | Use for |
|---|---|---|
| Antigen classification | oncoref.antigens, oncoref.antigen_sets, oncoref.target_selection, oncoref.peptide_subtraction |
Cross-species CA, RA, CTA, Other, Unsafe discovery, patient sex/organ protection, Ensembl sequences, exact/edit-distance peptide subtraction |
| Tissue injury tiers | oncoref.tissue_tiers, oncoref.target_curation |
Cited bulk and cell-level injury tiers (Vital, Protected, Manageable, Disposable), acute/persistent loss consequences, curated normal-tissue homes |
| Cancer vocabulary | oncoref.cancer_ontology, oncoref.cohorts |
Registry records, aliases, hierarchy, subtype axes, MMR/MSI status, cohort IDs, matched normal tissues |
| Expression & QC | oncoref.expression, oncoref.normalization, oncoref.library_qc, oncoref.samples |
Source-matrix ingestion, percentiles, clean TPM, housekeeping normalization, library-contamination screens, patient/donor deduplication |
| Burden & ICI response | oncoref.ici_response, oncoref.tmb, oncoref.incidence, oncoref.fusions |
Anti-PD-1 and broader ICI response estimates, TMB, incidence/mortality, defining fusions |
| Genes, species & cache | oncoref.gene_matching, oncoref.gene_ids, oncoref.human, oncoref.canine, oncoref.mouse, oncoref.catalog, oncoref.reference_data |
Canonical Ensembl identities, evaluated human/canine/murine antigen catalogs, SHA-256-verified reference caches |