Vaxrank selects mutated protein fragments for personalized therapeutic cancer
vaccines. It is the antigen ranking and vaccine design component of the
OpenVax pipeline.
It takes somatic variants, tumor RNA-seq and MHC alleles, or previously scored
candidate epitopes, and returns ranked antigen windows,
peptide or mRNA construct files, and reports for reviewing the evidence behind
each design. Unified mutation/CTA/viral inputs and the expanded peptide/mRNA
design workflows are experimental. Vaxrank builds on the openvax stack:
varcode annotates variants,
isovar assembles mutant protein sequence
from tumor RNA, and topiary with
mhctools predicts and ranks MHC ligands.
Install
pip install vaxrank
pyensembl install --release 113 --species human # match your reference genome
Vaxrank needs Python 3.11 or newer. PDF reports use WeasyPrint by default
(requiring Pango/Cairo system libraries, or legacy wkhtmltopdf via
--pdf-backend=pdfkit); see installation.
Quick start
Choose the vaccine type first: peptide, mrna, or both. This smoke example
uses the mouse B16 melanoma files in a repository checkout and a random test
predictor. It exercises the workflow; its scores are not biological predictions.
The report starts with what was read and what survived each stage:
Vaccine Design Report
Vaccine type: peptide
MHC alleles: H2-K*b H2-D*b
...
Parsed variants loaded: 5
Variants with annotation results: 5
Coding-effect variants: 4
Coding-effect variants with an RNA-derived protein: 2
It continues with the selection rules, each ranked candidate window with its
scored epitopes, per-source outcomes and provenance. Add --output-pdf-report vaccine-peptides.pdf for a PDF (see PDF reports).
For a real VCF + RNA run, supply:
--vcf: somatic variants, from any variant caller
--bam: tumor RNA-seq alignments, used by Isovar to assemble mutant transcripts
--mhc-alleles: the patient's MHC alleles, as separate quoted arguments or a
quoted comma- or space-separated list
Keep the quotes: an unquoted * can expand to filenames, or cause zsh to
reject the command before Vaxrank starts.
To emit vaccine constructs, add --output-dir (both modalities by default).
Use --vaccine-type peptide or --vaccine-type mrna to select one modality.
Vaccine designs describes the peptide and mRNA
designs and the files each one writes. For an offline canine DNA/RNA replay, see
the WLOS_0001 TP53 example.
Command line
vaxrank is the main command. Running a design takes flags only
(vaxrank --vcf … --bam …, vaxrank --input-lens …). vaxrank --help is a
one-screen summary; vaxrank help TOPIC prints one group of options
(variants, isovar, cta, predict, design, peptide, mrna,
annotation, output, advanced) and vaxrank help all prints every option.
vaxrank run FLAGS is an optional spelling of the bare form. Other commands are
vaxrank compare RUN_A RUN_B, vaxrank policies [show NAME], vaxrank config,
vaxrank replay FILE and vaxrank help. vaxrank --version prints the installed release.
Besides VCF + BAM input, it designs directly from a LENS or pVACseq report when
MHC prediction has happened upstream:
Use the Ensembl release the report was annotated with. Original predictions are
reused by default. Input workflows covers pVACseq
reports, saved Vaxrank evidence, combining several reports in one run, and when
to compute new predictions instead.
Key formulation, tumor-evolution, and review workflows (all configurable in per-trial YAML policies):
Multi-pool SLP partitioning: --peptide-num-pools 4 separates competing same-MHC peptides across injection pools and balances hydrophobicity/charge (peptide.pool_partition).
Cross-species MHC allele status & expression masking: --mhc-allele-status FILE and --mhc-loh-alleles mask tumor-lost or transcriptionally silenced MHC alleles (HLA, canine DLA, murine H-2, swine SLA) without masking normal-tissue self-epitopes (mhc_allele_status).
Run comparison: vaxrank compare RUN_A RUN_B computes rank-preservation statistics, per-target attribution diffs, and peptide/mRNA construct diffs across policies or RNA-vs-DNA runs.
Tumor board review & AI-ready dossier: --output-tumor-board-dossier, --interactive-review-html, and audited --selection-overrides replay with deterministic hard safety gates (tumor_board).
Local caches & regression test data: vaxrank data dirs|status|path|prune|test-data inspects or prunes local reference caches and exports/verifies the shared Sid regression test data (Test data).
Tab completion
vaxrank supports shell tab completion for commands,
options, and choice values via argcomplete. Enable it once for every OpenVax
command-line tool:
activate-global-python-argcomplete
Or enable it only for vaxrank in your shell startup file:
Always run tests through ./test.sh, not bare pytest. Every pull request
bumps vaxrank/version.py. See Development for test
data, reference downloads and releases.
Clinical studies
The OpenVax pipeline has used Vaxrank in these Mount Sinai trials:
PGV001 / NCT02721043: personalized vaccines for solid and hematologic malignancies.
NCT03359239: PGV001 with atezolizumab in urothelial cancer.
NCT03223103: PGV001 with tumor treating fields and temozolomide in glioblastoma.
@article {Rubinsteyn142919,
author = {Rubinsteyn, Alex and Hodes, Isaac and Kodysh, Julia and Hammerbacher, Jeffrey},
title = {Vaxrank: A Computational Tool For Designing Personalized Cancer Vaccines},
year = {2017},
doi = {10.1101/142919},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://www.biorxiv.org/content/early/2017/05/27/142919},
journal = {bioRxiv}
}