Toolkit for benchmarking, merging, and annotating Structural Variants
📚 WIKI page has detailed user documentation.
🛠️ Developer Docs for the truvari API.
📈 See Updates on new versions.
📝 Read our Papers (#1, #2) to learn more.
💻 Installation
Truvari uses Python 3.6+ and can be installed with pip:
python3 -m pip install Truvari
For details and more installation options, see Installation on the wiki.
⏩ Quick Start
Each sub-command contains help documentation. Start with truvari -h to see available commands.
The current most common Truvari use case is for structural variation benchmarking:
truvari bench -b base.vcf.gz -c comp.vcf.gz -f reference.fa -o output_dir/
Find more matches by harmonizing phased variants using refine:
truvari refine output_dir/
Use Truvari's comparison engine to consolidate redundant variants in a merged multi-sample VCF:
bcftools merge -m none sampleA.vcf.gz sampleB.vcf.gz | bgzip > merge.vcf.gz
tabix merge.vcf.gz
truvari collapse -i merge.vcf.gz -o truvari_merge.vcf
🧬 Truvari Commands
- bench - Performance metrics from comparison of two VCFs
- collapse - Collapse possibly redundant VCF entries
- refine - Automated bench result refinement with phab
- anno - Add SV annotations to a VCF
- phab - Harmonize variant representations using MSA
- consistency - Consistency report between multiple VCFs
- vcf2df - Turn a VCF into a pandas DataFrame
- segment - Normalization of SVs into disjointed genomic regions
- stratify - Count variants per-region in vcf
- divide - Divide a VCF into independent shards
- ga4gh - Consolidate benchmarking result VCFs
🔎 More Information
All documentation about Truvari is on the WIKI. Additional information about using Truvari can be found in Discussions
Metadata
Release files for truvari 5.5.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 | |
|---|---|---|---|
| truvari-5.5.0.tar.gz | 93.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| truvari-5.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 205.7 kB
Release files / truvari-5.5.0.tar.gz
| Download URL | truvari-5.5.0.tar.gz |
|---|---|
| Size | 93.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58aa2dc02de37597ba57ae18a2b32c662157e0e03d65f584a5b75e525a402d50
|
|
BLAKE2b-256 checksum How to use checksums |
29c85ab1ba49a3a6eba0cb568a22f09da8d90a963582b7b1f7187c73109efc21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 19, 2026.
Transparency logRelease files / truvari-5.5.0-py3-none-any.whl
| Download URL | truvari-5.5.0-py3-none-any.whl |
|---|---|
| Size | 111.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d54413d1f51cdbfcd572c728d52d322ad85deb8838d8cfd98e8e0e698c1d6dc
|
|
BLAKE2b-256 checksum How to use checksums |
865664813460161fce978e011e5ec3b94342530019d43c4ef137af422c69b631
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 19, 2026.
Transparency log