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.0.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.0-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vcfpy-0.14.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e483535cf2691b094b4121e58d539cb8a953b0b0b63339ea10ef7d81ce79008b
MD5 ca5346adcf0a5ca174427f9dc1994cc7
BLAKE2b-256 779372b02bf68d01c579f3d9642f515589f4d87b2c1709903aacdd5b91c51453

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vcfpy-0.14.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cda224ac32eb9921280ec5648f6c466632d491898327e712c3bb2f497de5daa
MD5 7a6d2d3aa0be1e4f8162bd90d6798439
BLAKE2b-256 b28fbb36d8aaa49187841f3b1dd870567872d88bdf5f81e50564f49ed6e26390

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 Sentry Error logging StatusPage Status page