An open-source Python library for VCF parsing and manipulation
Project description
Sentieon's vcflib
An open-source Python library for parsing and manipulation of variant call format (VCF) files.
Highlights
- Transparently supports reading and writing uncompressed or bgzip-compressed and tabix-indexed VCF files.
- VCF and gVCF (with the
.g.vcf.gzsuffix) files are supported. - Output files write tribble (
.vcf.idx) and tabix (vcf.gz.tbi) indexes on the fly, without a separate pass through the data for indexing. - Parallelization across genomic regions is supported with a
Sharderclass. - Support for Python2.7 and Python3.
Example Usuage - VCF filtering
A simple script that filters variants with a DP < 10 from an input VCF is
provided as an example at example/filter_dp.py.
PYTHONPATH=$(pwd) python example/filter_dp.py --input_vcf <VCF> --output_vcf <VCF>
Contributing
Thank you for your interest in contributing to vcflib, we welcome community contributions! The source files for vcflib are currently maintained in an internal codebase, and pull requests cannot be merged directly, although they will be reviewed by our team.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vcflib-1.0.0.tar.gz.
File metadata
- Download URL: vcflib-1.0.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
389f3fdbe33a7bcbceee7a03f35a195a74f0af9261f20c745772bec1544c0ab6
|
|
| MD5 |
9b4e92bf33e3c32833f1c5f4b8fd1fa7
|
|
| BLAKE2b-256 |
f340c59238364399b894511bf6921572d649c28891c46806e4c8f2c465b9d9ed
|
File details
Details for the file vcflib-1.0.0-py3-none-any.whl.
File metadata
- Download URL: vcflib-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f134c13d27b9b43ad816258ed29493f437942d2e51bec2bfd274866bf12bd0d7
|
|
| MD5 |
c3040cb1aee89e5b32beaf3a4f732be6
|
|
| BLAKE2b-256 |
5e5b4ba253ae430e996fec80f25502652356d6ab989478721fcd319bf6bd285f
|