CyVCF
A Cython port of the PyVCF library maintained by @jamescasbon.
The goal of this project is to provide a very fast Python library for parsing and manipulating large VCF files. Cython has been used to optimize speed. This version is approximately 4 times faster than PyVCF, and the parsing speed is essentially identical to that of C/C++ libraries provided by PLINKSEQ and VCFLIB.
The functionality and interface are currently the same as documented here: http://pyvcf.rtfd.org/
Installation
python setup.py build python setup.py install
Testing
python setup.py test
Basic usage
>>> import cyvcf
>>> vcf_reader = cyvcf.Reader(open('test/example-4.0.vcf', 'rb'))
>>> for record in vcf_reader:
... print record
20 14370 G A 29.0 . H2=True;NS=3;DB=True;DP=14;AF=0.5 GT:GQ:DP:HQ 0|0:48:1:51,51 1|0:48:8:51,51 1/1:43:5:.,.
20 17330 T A 3.0 q10 NS=3;DP=11;AF=0.017 GT:GQ:DP:HQ 0|0:49:3:58,50 0|1:3:5:65,3 0/0:41:3:.
20 1110696 A G,T 67.0 . AA=T;NS=2;DB=True;DP=10;AF=0.333,0.667 GT:GQ:DP:HQ 1|2:21:6:23,27 2|1:2:0:18,2 2/2:35:4:.
20 1230237 T . 47.0 . AA=T;NS=3;DP=13 GT:GQ:DP:HQ 0|0:54:7:56,60 0|0:48:4:51,51 0/0:61:2:.
20 1234567 GTCT G,GTACT 50.0 . AA=G;NS=3;DP=9 GT:GQ:DP ./. 0/2:17:2 1/1:40:3
Metadata
Release files for cyvcf 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cyvcf-0.1.16.tar.gz | 165.9 kB | Without provenance | Details |
Release files / cyvcf-0.1.16.tar.gz
| Download URL | cyvcf-0.1.16.tar.gz |
|---|---|
| Size | 165.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f17077e159f71c520332013bf940cf6a2dccbf903d8d29f56460f9eff3c82828
|
|
BLAKE2b-256 checksum How to use checksums |
d96d2b9effdb5f6f4b17f764e115ee39d60479c5f9e4b2570b0846b033684ef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cyvcf 0.1.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.