Skip to main content

VCFPy

https://img.shields.io/pypi/v/vcfpy.svg https://img.shields.io/travis/bihealth/vcfpy.svg Documentation Status Updates

Python 3 VCF parser that allows both reading and writing

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.

History

HEAD

  • Reader and Writer can now be used as context manager (with with)

  • Including license in documentation, including Biopython license

  • Adding support for writing bgzf files (taken from Biopython)

  • Adding support for parsing arrays in header lines

  • Removing example-4.1-bnd.vcf example file because v4.1 tumor derival lacks ID field

  • Adding AltAlleleHeaderLine, MetaHeaderLine, PedigreeHeaderLine, and SampleHeaderLine

  • Renaming SimpleHeaderFile to SimpleHeaderLine

  • Warn on missing FILTER entries on parsing

  • Reordered parameters in from_stream and from_file (#18)

  • Renamed from_file to from_stream (#18)

  • Renamed Reader.jump_to to Reader.fetch

  • Adding header_without_lines function

  • Generally extending API to make it esier to use

  • Upgrading dependencies, enabling pyup-bot

  • Greatly extending documentation

0.2.1 (2016-09-19)

  • First release on PyPI

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.3.0.tar.gz (965.7 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.3.0-py2.py3-none-any.whl (25.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: vcfpy-0.3.0.tar.gz
  • Upload date:
  • Size: 965.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vcfpy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c1e88324676980c491d888dc4c846433ac7ea01badec1a86d8755016c3eec818
MD5 1b6eaa0dfb46fe099e40e997c067acef
BLAKE2b-256 b260706a6909d7354f3b7b4ae518a6e85933d5c7ad5237dd146a6511a5e0b292

See more details on using hashes here.

File details

Details for the file vcfpy-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for vcfpy-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eb4d31a2dbae9b654b0b8b64fe929ec5cc493ec64e7b435fa21f61f143b01745
MD5 17484debfb8719b223fd1e85e9aa2a66
BLAKE2b-256 1f223b9f1eaa8187044ffb2365390cd11064eb57ea0f85b5d11222706245698c

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