Skip to main content

Structural variant comparison tool for VCFs

Project description

PyPI version pylint FuncTests coverage develop Downloads

Logo
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

truvari-5.4.0.tar.gz (98.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

truvari-5.4.0-py3-none-any.whl (119.1 kB view details)

Uploaded Python 3

File details

Details for the file truvari-5.4.0.tar.gz.

File metadata

  • Download URL: truvari-5.4.0.tar.gz
  • Upload date:
  • Size: 98.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for truvari-5.4.0.tar.gz
Algorithm Hash digest
SHA256 20463d4cde71a6abf86279f78e93891e2fa9f031efeea4a9a4f1fed77355a758
MD5 5fa977cd554a81731c7d382e3882b7c8
BLAKE2b-256 c241bfcb5a44c2be7f19ae01799e4abe3bda43a0dff201c4b978db86b99b7ecf

See more details on using hashes here.

Provenance

The following attestation bundles were made for truvari-5.4.0.tar.gz:

Publisher: release.yml on ACEnglish/truvari

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file truvari-5.4.0-py3-none-any.whl.

File metadata

  • Download URL: truvari-5.4.0-py3-none-any.whl
  • Upload date:
  • Size: 119.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for truvari-5.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc74000853a4b69df53075daa9f4615dab2569c05337dcefc8d61a76f1f6c33a
MD5 69dd4ce0fe7e73ef66b506e5d7cead6b
BLAKE2b-256 a0d28dbd6c8db9ad0f4bf10101cbc02aa456f63876cddf86e064b26c73b12ace

See more details on using hashes here.

Provenance

The following attestation bundles were made for truvari-5.4.0-py3-none-any.whl:

Publisher: release.yml on ACEnglish/truvari

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page