Skip to main content

Bgen file format reader

Project description


A bgen file format reader.

Bgen is a file format for storing large genetic datasets. It supports both unphased genotypes and phased haplotype data with variable ploidy and number of alleles. It was designed to provides a compact data representation without sacrificing variant access performance.

This python package is a wrapper around the bgen library, a low-memory footprint reader that efficiently reads bgen files. It fully supports the bgen format specifications: 1.2 and 1.3; as well as their optional compressed formats.


It can be installed via conda

conda install -c conda-forge bgen-reader

Or via pip

pip install bgen-reader


Please, refer to


fatal error: bgen.h: No such file or directory

This means that bgen C library is not installed (or could not be found). Please, follow the instructions in to install it, and try installing bgen-reader again.


If you encounter any issue, please, submit it.



This project is licensed under the MIT License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bgen-reader, version 4.0.8
Filename, size File type Python version Upload date Hashes
Filename, size bgen_reader-4.0.8-py3-none-any.whl (44.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bgen-reader-4.0.8.tar.gz (37.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page