Skip to main content

An open-source Python library for VCF parsing and manipulation

Project description

Sentieon's vcflib

An open-source Python library for parsing and manipulation of variant call format (VCF) files.

Highlights

  • Transparently supports reading and writing uncompressed or bgzip-compressed and tabix-indexed VCF files.
  • VCF and gVCF (with the .g.vcf.gz suffix) files are supported.
  • Output files write tribble (.vcf.idx) and tabix (vcf.gz.tbi) indexes on the fly, without a separate pass through the data for indexing.
  • Parallelization across genomic regions is supported with a Sharder class.
  • Support for Python2.7 and Python3.

Example Usuage - VCF filtering

A simple script that filters variants with a DP < 10 from an input VCF is provided as an example at example/filter_dp.py.

PYTHONPATH=$(pwd) python example/filter_dp.py --input_vcf <VCF> --output_vcf <VCF>

Contributing

Thank you for your interest in contributing to vcflib, we welcome community contributions! The source files for vcflib are currently maintained in an internal codebase, and pull requests cannot be merged directly, although they will be reviewed by our team.

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

vcflib-1.0.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

vcflib-1.0.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file vcflib-1.0.1.tar.gz.

File metadata

  • Download URL: vcflib-1.0.1.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.14.3 Darwin/24.6.0

File hashes

Hashes for vcflib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0b814ea000c54c9885d63713c2a631a82f4bac9fba0f42a2c9c57fa8bed04759
MD5 f9058f435e22b6d1d14b2c2e003cf90c
BLAKE2b-256 5b8406cef9627a93b8fae4d1bf2359035cf32aa469a0bf181b802135b4d8ad39

See more details on using hashes here.

File details

Details for the file vcflib-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: vcflib-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.14.3 Darwin/24.6.0

File hashes

Hashes for vcflib-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26437875d441926b9fc6de2ce455c3516e6d6a4cce2e5ce638a94b05c803e705
MD5 3c93895aec2ad0b0d0b45c28d492a7b1
BLAKE2b-256 20480ba1d6e805549ce9ace39c7060130ac1290322c82e50fd9f7f2686ba27fc

See more details on using hashes here.

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