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
Release files for tsarina 1.25.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 | |
|---|---|---|---|
| tsarina-1.25.0.tar.gz | 528.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tsarina-1.25.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.0 MB
Release files / tsarina-1.25.0.tar.gz
| Download URL | tsarina-1.25.0.tar.gz |
|---|---|
| Size | 528.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
998cfb20391b3e250f9383363666b864453b8b435f1659f87e17611ec2dec97e
|
|
BLAKE2b-256 checksum How to use checksums |
e85d9c616c561b3c0755a3c06c31cfecc464e611b20d00b4d21a7cf764fb578b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.6
|
Release files / tsarina-1.25.0-py3-none-any.whl
| Download URL | tsarina-1.25.0-py3-none-any.whl |
|---|---|
| Size | 491.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84daaf386985225687ad37dd1abbfcbc70512a4265d29441e20deb921b09cc33
|
|
BLAKE2b-256 checksum How to use checksums |
0cda53d178085b3e217c8023c014e6b9b841fd12633fcd9e6039fe81ed55cf84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.6
|