tsarina
Tsarina selects shared cancer immunotherapy targets for an individual patient or a population HLA panel.
It starts with reusable cancer-testis antigen (CTA), oncogenic-virus, and recurrent-mutation targets. It then combines tumor context, public immunopeptidomics evidence, healthy-tissue safety evidence, and predicted HLA presentation to produce ranked peptide-MHC (pMHC) candidates.
Choose a workflow
| Goal | Entry point | Result |
|---|---|---|
| Prioritize targets for one patient | tsarina personalize or personalized_targets() |
Ranked CTA, viral, and mutant pMHCs for that patient's HLA type and tumor |
| Design an off-the-shelf CTA panel | tsarina panel |
CTA × HLA matrix with evidence tiers and population-coverage estimates |
| Inspect public peptide observations | tsarina hits |
Cancer, healthy-tissue, and restriction evidence for specified peptides |
Start with the documentation guide for inputs, data setup, and the workflow-specific guides.
Install
pip install tsarina
Install the optional peptide-generation and partitioning dependencies for full functionality:
pip install "tsarina[all]"
Quick start
Prioritize targets for a patient:
tsarina personalize \
--hla 'HLA-A*02:01,HLA-A*24:02,HLA-B*07:02' \
--cta 'MAGEA4=142.5,PRAME=87.3' \
--mutations "KRAS G12D" \
--viruses hpv16 \
--output patient-targets.csv
Build the default global CTA × HLA panel:
tsarina panel --format long --output panel.csv
Both workflows can use registered IEDB or CEDAR ligand exports as public immunopeptidomics evidence. See Data and evidence for setup and interpretation.
Target categories
| Category | Candidate source | Tumor-specific context |
|---|---|---|
| CTA | The canonical oncoref CTA set | Tumor RNA expression and reproductive-tissue restriction |
| Viral | Proteomes from nine oncogenic viruses | Virus detected in the tumor |
| Mutant | Nineteen recurrent hotspots across seven driver genes | Matching mutation detected in the tumor |
Oncoref is the single authority for CTA membership, aliases, HPA restriction calls, and proteoform groups. Tsarina adds downstream evidence and scoring without maintaining a second CTA definition library. The exact boundary is documented in CTA ownership and downstream evidence.
How ranking works
Tsarina applies the same high-level sequence across workflows:
- choose candidates from the relevant shared-target sets;
- enforce tumor context and exclude non-target human peptide matches;
- annotate public cancer and healthy-tissue MS observations;
- predict presentation by the requested HLA alleles; and
- rank pMHCs with explicit evidence and safety provenance.
Public MS evidence strengthens a candidate but does not redefine CTA membership. Healthy, direct-ex-vivo observations outside reproductive tissues and thymus are treated as safety evidence.
Documentation
- Documentation guide — workflow selection and shared concepts
- Personalized target selection — patient inputs, prioritization, and output schema
- CTA panel design — automatic selection, evidence tiers, HLA panels, and coverage
- Data and evidence — data registry, observation classification, scoring, and naming
- CTA ownership and downstream evidence — oncoref/Tsarina responsibilities and maintenance
Development
./develop.sh
./format.sh
./lint.sh
./test.sh
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsarina-1.24.1.tar.gz.
File metadata
- Download URL: tsarina-1.24.1.tar.gz
- Upload date:
- Size: 523.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625e04d967ed4fcd6892fbf04d2c57f98de7e061fc2956b394061c99dfda59dc
|
|
| MD5 |
808d8e580a5fad90eb9b05020664ee47
|
|
| BLAKE2b-256 |
093a99f1e147fe2a19dcd1a40d7c68dc4c8055990316bf5a8824f33703d6e75d
|
File details
Details for the file tsarina-1.24.1-py3-none-any.whl.
File metadata
- Download URL: tsarina-1.24.1-py3-none-any.whl
- Upload date:
- Size: 489.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4cee1fba274d2da8347302f328ab51aafc050786e8b9841cbbb097a6a30ad2
|
|
| MD5 |
88486c5a9373336ff148485d0ee5cff0
|
|
| BLAKE2b-256 |
79988cc64489d7e9a9749730e2d21d2ce7eb3e2de2836c8f7ea2749456c00c6e
|