Skip to main content

pypi bioconda CI Documentation Status Publication in The Journal of Open Source Software

VCFPy

Python 3 VCF library with good support for both reading and writing

Features

  • Support for reading and writing VCF v4.3
  • Interface to INFO and FORMAT fields is based on dict allows for easier modification than PyVCF (also I find this more pythonic)
  • Read (and jump in) and write BGZF files just using vcfpy

Why another VCF parser for Python!

I've been using PyVCF with quite some success in the past. However, the main bottleneck of PyVCF is when you want to modify the per-sample genotype information. There are some issues in the tracker of PyVCF but none of them can really be considered solved. I tried several hours to solve these problems within PyVCF but this never got far or towards a complete rewrite...

For this reason, VCFPy was born and here it is!

What's the State?

VCFPy is the result of two full days of development plus some maintenance work later now (right now). I'm using it in several projects but it is not as battle-tested as PyVCF.

Why Python 3 Only?

As I'm only using Python 3 code, I see no advantage in carrying around support for legacy Python 2 and maintaining it. At a later point when VCFPy is known to be stable, Python 2 support might be added if someone contributes a pull request.

Download files

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

Source Distribution

vcfpy-0.14.1.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

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

vcfpy-0.14.1-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

Details for the file vcfpy-0.14.1.tar.gz.

File metadata

  • Download URL: vcfpy-0.14.1.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vcfpy-0.14.1.tar.gz
Algorithm Hash digest
SHA256 d89049aa1cd11dd96571e8463250bbde23d6b6c7c964a13671448033ecf93e16
MD5 179ff9bcc284af961d30df93c93562e2
BLAKE2b-256 7963c9bd3ccc6777c90bb3fac5d152e3a04e9d413ae251f9ecacdeb27da14f74

See more details on using hashes here.

File details

Details for the file vcfpy-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: vcfpy-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 43.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vcfpy-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4883347f0f4166cfe02ce89ae278dd1f2b7de82a7bd0c47e626dbe123b6703cb
MD5 db139cf94baffbbcb560fbfb2158e70f
BLAKE2b-256 cbf69997c5459bbf4a84fb9012e65ed388a829f1e0794fb72cee1a711f1aa7ba

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