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.

Metadata

Release files for vcfpy 0.14.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vcfpy 0.14.2
File Size Uploaded
vcfpy-0.14.2.tar.gz 40.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vcfpy 0.14.2
File Interpreter ABI Platform
vcfpy-0.14.2-py3-none-any.whl Python 3 none any Details

Total release size: 84.1 kB

Release files / vcfpy-0.14.2.tar.gz

Download URL vcfpy-0.14.2.tar.gz
Size 40.3 kB
Tags Source
SHA-256 checksum
How to use checksums
89786ed8f49013c2a6fd4add57a1590a43140c3fac4628da0f27e92d50bfd891
BLAKE2b-256 checksum
How to use checksums
18001411d5743738f8dddff65c71d099a006eb627e2cc8b82d830ebf06a8677d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / vcfpy-0.14.2-py3-none-any.whl

Download URL vcfpy-0.14.2-py3-none-any.whl
Size 43.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
532ea951514ceb1f6a873185d65f7b43fa83130126ebd951621b4dae79c48774
BLAKE2b-256 checksum
How to use checksums
4e32703c6e20edf3f707c5baeb2b3f44280fabfadcf1f6667aa2f9feb12516f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.14.2 This release

2 release files

0.13.8

1 release file

0.13.7

1 release file

0.13.6

1 release file

0.13.5

1 release file

0.13.4

1 release file

0.13.3

1 release file

0.13.2

1 release file

0.13.1

1 release file

0.13.0

1 release file

0.12.3

1 release file

0.12.2

1 release file

0.12.1

1 release file

0.12.0

2 release files

0.11.2

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.0

2 release files

0.9.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page