Ensembl VEP (Variant Effect Predictor) predicts the functional effects of genomic variants.
NOTE: This project is in an initial development phase. Many features are incomplete, APIs may change without notice, and documentation is partial. Use at your own risk and feel free to open issues or contribute; your feedback is welcome.
Full documentation is available at: https://ensembl.github.io/ensembl-vep-py/
pip install ensembl-vepOr alternatively, using uv (recommended)
uv pip install ensembl-vep- Git
- uv (https://github.com/Ensembl/uv)
- a Rust toolchain, including Cargo.
uv installs Python 3.12 when it is not already available. Rust and Cargo are required because the source distribution includes a native Rust extension.
-
clone the repository
git clone https://github.com/Ensembl/ensembl-vep-py.git cd ensembl-vep-py -
Create virtual environment
uv venv --python 3.12 source .venv/bin/activate -
Install the package
uv pip install .
For more details, see the Download and install page of the documentation.
Run Ensembl VEP with the example VCF, GTF and FASTA files:
uv run vep run \
--input_file examples/homo_sapiens/homo_sapiens_GRCh38.vcf \
--gtf examples/homo_sapiens/genes.gtf.bgz \
--fasta examples/homo_sapiens/unmasked.fa.bgz \
--output_file quickstart_output.vcf \
--stats_file quickstart_summary.htmlRun the test suite:
# Run pytest with coverage
uv run coverage run -m pytest
# Run Rust llvm-cov
cargo llvm-cov --ignore-filename-regex '(^|/)src/rust/lib\.rs$'The Rust crate root src/rust/lib.rs is reserved for PyO3 module registration
glue. Keep testable Rust logic in submodules; coverage runs ignore lib.rs so
the project can use stable Rust without nightly-only coverage attributes.
We welcome contributions! Please see our Contributing Guide for details.
If you use this software, please cite:
McLaren W, Gil L, Hunt SE, Riat HS, Ritchie GR, Thormann A, Flicek P, Cunningham F.
The Ensembl Variant Effect Predictor.
Genome Biology Jun 6;17(1):122. (2016)
doi:10.1186/s13059-016-0974-4
- Report bugs or request features: Issues
See CHANGELOG.md for version history and updates.