pyVSV
pyVSV is a Python library for assembling recombinant Vesicular Stomatitis Virus (VSV) vaccine plans on the Indiana antigenome.
Liu G, Cao W, Salawudeen A, et al. Vesicular Stomatitis Virus: From Agricultural Pathogen to Vaccine Vector. Pathogens. 2021;10(9):1092. Published 2021 Aug 27. doi:10.3390/pathogens10091092
Install
pip install pyVSV
The Python library is installed as pyVSV but the import package is vsv.
Quick start
import vsv
from vsv import Gene, GlycoproteinForm, Host, Replication, Timing
outbreak = vsv.read_record("outbreak.gb") # pathogen record: FASTA, GenBank, or SBOL
glycoprotein = outbreak.cds(Gene.GLYCOPROTEIN)
vaccine = vsv.indiana().replace(
glycoprotein,
identifier="rvsv_dg_outbreak_gp",
name="rVSV outbreak glycoprotein",
antigen_class="zaire-ebolavirus-glycoprotein",
strain="Kikwit-1995",
form=GlycoproteinForm.FULL_LENGTH,
replication=Replication.COMPETENT,
)
vaccine.check()
# Gene order, the edit, its citation, and the foreign coding sequence.
vaccine.write_plan("plan.ttl")
# That coding sequence spliced into the Indiana reference, NC_001560.1.
vaccine.write_antigenome("antigenome.ttl")
read_record reads the pathogen genome from FASTA, GenBank, or an SBOL genome document. write_plan stores the plan: ordered genes, the edit, the method citation, and the foreign coding sequence. write_antigenome stores the antigenome, the same coding sequence spliced into the Indiana reference NC_001560.1. vsv.read opens a plan and returns a Vaccine. read_record opens that antigenome and returns a Genome. Calling code does not handle SBOL objects.
The coding sequence
cds returns the DNA string for one of the five VSV genes and raises when that gene has no coding sequence. Spans inside a Genome are zero-based and half-open. In an SBOL file those spans are one-based inclusive ranges.
Placing the gene
replace removes the VSV glycoprotein and puts the coding sequence in its place. The new vaccine cites the 2004 glycoprotein-replacement method. The antigen id defaults to Glycoprotein.
replication is Replication.COMPETENT when the antigen supplies entry, and Replication.SINGLE_CYCLE when it does not.
To keep the VSV glycoprotein, or to place the gene first, use insert. It keeps the parent's replication class, so it takes no replication argument. The published sites are "g" and "leader".
# Keep the VSV glycoprotein and add the gene after it. Cites the 1997 method.
vaccine = vsv.indiana().insert(
coding,
after="g",
identifier="rvsv_gl_outbreak_gp",
name="rVSV outbreak glycoprotein",
antigen_class="zaire-ebolavirus-glycoprotein",
module="outbreak_gp",
form=GlycoproteinForm.FULL_LENGTH,
strain="Kikwit-1995",
)
# Place the gene first, after the leader. Cites the 2014 method.
vaccine = vsv.indiana().insert(
coding,
after="leader",
identifier="rvsv_leader_outbreak_gp",
name="rVSV outbreak glycoprotein",
antigen_class="zaire-ebolavirus-glycoprotein",
module="outbreak_gp",
form=GlycoproteinForm.FULL_LENGTH,
strain="Kikwit-1995",
)
vsv.indiana() is nucleoprotein, phosphoprotein, matrix protein, glycoprotein, and large polymerase, with realization NC_001560.
Checking a vaccine
check() is true only when violations is empty. A knowledge gap is a violation: unknown replication, or an unknown parent. vsv check exits 0 when every violation is a gap and exits 1 on any other rule.
When the edited antigen has a coding sequence, check() also rejects:
- an unclosed reading frame
- a gene-end inside the transcription unit
- a gene-end joined directly to a gene-start
- a soluble glycoprotein used as a replication-competent glycoprotein replacement
- a full-length or tail-chimera competent glycoprotein replacement with no hydrophobic anchor in its last 60 residues
- a Zaire glycoprotein whose editing site is not eight A's when full-length, or seven A's when soluble
result = vaccine.check()
if not result:
for violation in result.violations:
print(violation.rule, violation.message)
vaccine.observations is empty until a result is recorded. write_plan stores the coding sequence when one is set. The curated shelf cards have none.
Finding precedents
precedents returns published vaccines with the same arrangement: the glycoprotein replaced, one gene after the glycoprotein, or one gene after the leader. vsv.library() reads the curated shelf.
for precedent in vaccine.precedents(vsv.library()):
print(precedent.id)
antigen_class keeps vaccines whose antigen is that class or a subclass of it. phenotype, host, and timing keep vaccines with a matching observation. A filovirus query includes the species glycoproteins. A Zaire query does not include Sudan or Marburg. A nonhuman-primate query includes cynomolgus and rhesus.
from vsv import Phenotype
vaccine.precedents(
vsv.library(),
antigen_class="filovirus-glycoprotein",
phenotype=Phenotype.PROTECTION,
host=Host.NONHUMAN_PRIMATE,
)
A vaccine with any number of non-viral genes other than one is not compared.
data/designs/ holds the Indiana chassis and one directory per published filovirus vaccine. Each directory has design.ttl and PROVENANCE.md. The Turtle describes the ordered genome and the papers. A nucleotide sequence is present only when the antigen feature has an sbol:Sequence. The shelf cards have none.
The curated library lives in the repository, not in the wheel. vsv.library() finds it from a checkout. From an installed package, pass the directory:
from pathlib import Path
shelf = vsv.library(Path("path/to/pyVSV/data/designs"))
Antigenome
vaccine.antigenome() splices the coding sequence into NC_001560.1 and returns a Genome. The chassis sequence is the SBOL document NC_001560.ttl. A glycoprotein replacement has five named genes, so cds returns the inserted glycoprotein. The backbone is https://vsv.bio/backbone/VSV-Indiana. The reference accession is NC_001560.1. The papers' infectious clones stay on Implementation.plasmid.
A glycoprotein replacement keeps both flanking intergenic dinucleotides on the backbone. An insert between the glycoprotein and the large polymerase prefixes CT. An insert after the leader suffixes CT, so a gene-end is not joined directly to the next gene-start.
A shelf card has no coding sequence, so antigenome() and write_antigenome raise for those files.
Command line
vsv genes data/raw/NC_001560.fasta
vsv genes data/raw/NC_001560.ttl
vsv extract -g g --kind protein data/raw/NC_001560.gb
vsv designs
vsv show rvsv_dg_zebov_kikwit_gp
vsv check data/designs/vsv_indiana
vsv precedents rvsv_dg_zebov_kikwit_gp --locus 3
vsv precedents data/designs/rvsv_gl_zebov_sgp
vsv antigenome kikwit.ttl
On the command line the genes are n (nucleoprotein), p (phosphoprotein), m (matrix protein), g (glycoprotein), and l (large polymerase). The full command reference (every subcommand, its filters, and what an empty precedents answer means) is in docs/cli.md.
Literature
Methods the library cites
replace and insert record the citation for the method they implement, so a written plan carries the paper its arrangement came from.
| Arrangement | Call | Method paper |
|---|---|---|
| Glycoprotein replacement | replace(...) |
Garbutt et al., Journal of Virology, May 2004, 10.1128/jvi.78.10.5458-5465.2004 |
| Gene after the glycoprotein | insert(..., after="g") |
10.1128/jvi.71.8.5982-5989.1997 |
| Gene after the leader | insert(..., after="leader") |
10.1128/jvi.00019-14 |
Each curated design carries its own citations and quoted evidence in its PROVENANCE.md.
Vector design and recovery
- Vesicular stomatitis virus (VSV) as a vaccine vector for immunization against viral infections - Jan 2013
- An efficient plasmid-based system for the recovery of recombinant vesicular stomatitis virus encoding foreign glycoproteins - Jun 2024
- Leveraging Synthetic Virology for the Rapid Engineering of Vesicular Stomatitis Virus (VSV) - Oct 2024
- Low-dose VSV-EBOV vaccination provides rapid protection from lethal Ebola virus challenge - Feb 2026
Reference genomes
- Complete Genome Sequences of Two Vesicular Stomatitis Virus Isolates Collected in Mexico - Sep 2017 (VSV Isolate 1, VSV Isolate 2)
Data
- VSV Genome Sequence - Complete genome sequence of Vesicular Stomatitis Virus (VSV)
- VSV Protein Structures - 3D structures of VSV proteins available in the Protein Data Bank (PDB)
- Vesiculovirus on ViralZone - Information on the Vesiculovirus genus, including VSV, on ViralZone
Resources
License
Apache-2.0. See LICENSE.
Metadata
Release files for pyVSV 0.3.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 | Provenance | Actions |
|---|---|---|---|---|
| pyvsv-0.3.0.tar.gz | 313.8 kB | With provenance | Details for pyvsv-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyvsv-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pyvsv-0.3.0-py3-none-any.whl |
Total release size: 379.3 kB
Release files / pyvsv-0.3.0.tar.gz
| Download URL | pyvsv-0.3.0.tar.gz |
|---|---|
| Size | 313.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d44b6d633370e600c57342d6a291c10c2044c8f91940367e9a347dde3c74c15
|
|
BLAKE2b-256 checksum How to use checksums |
95888a04075a6c3caec8a91825d22e320790fbc06aa4dc24e7d16b6a7178a849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyvsv-0.3.0-py3-none-any.whl
| Download URL | pyvsv-0.3.0-py3-none-any.whl |
|---|---|
| Size | 65.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3348e6d04479d46301e70eac7adfd999691473306d915adc1eadf42762a87faa
|
|
BLAKE2b-256 checksum How to use checksums |
85d87f93fdc13c032a566278ae8cc15572ab5e4cd8798f4e781ecbe6afc99a90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for pyVSV 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyvsv-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.