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.31.2
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.31.2.tar.gz | 569.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tsarina-1.31.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / tsarina-1.31.2.tar.gz
| Download URL | tsarina-1.31.2.tar.gz |
|---|---|
| Size | 569.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d119e547adf421cca95d37131c309ab4a0befe3630467f2fd16c1a8b12522c70
|
|
BLAKE2b-256 checksum How to use checksums |
2876d531aa37d2c5f9d4e1a51d1944c705b961d28bc8e6153664c7545edba884
|
| 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.31.2-py3-none-any.whl
| Download URL | tsarina-1.31.2-py3-none-any.whl |
|---|---|
| Size | 518.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c740d38687896d3f07040a63c8bdbfd5abf61411fdfbc0d028427a018863c9f4
|
|
BLAKE2b-256 checksum How to use checksums |
0908978414037a014dc76fcbd463f50cff9f66a7f4e07e776b2acccc5d7f5fa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.6
|