Skip to main content

Python wrapper for pgenlib's basic reader and writer.

Project description

This provides a basic Python API for pgenlib (See python_api.txt for details.)

Build this with this.

Cython and NumPy must be installed.

python3 setup.py build_ext
[sudo] python3 setup.py install
Example usage:
#write a 2 sample file
import numpy as np
import pgenlib as pg

with pg.PgenWriter("test.pgen".encode("utf-8"), 2, 3, False) as writer:
	writer.append_alleles(np.array([0,1,1,1],dtype=np.int32))
	writer.append_alleles(np.array([0,1,0,0],dtype=np.int32))
	writer.append_alleles(np.array([0,0,0,0],dtype=np.int32))

Project details


Download files

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

Source Distribution

Pgenlib-0.81.2.tar.gz (385.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Pgenlib-0.81.2-cp37-cp37m-macosx_10_13_x86_64.whl (266.3 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

File details

Details for the file Pgenlib-0.81.2.tar.gz.

File metadata

  • Download URL: Pgenlib-0.81.2.tar.gz
  • Upload date:
  • Size: 385.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.4

File hashes

Hashes for Pgenlib-0.81.2.tar.gz
Algorithm Hash digest
SHA256 c8dac92add708197b3ffe41f9fa7612bc48765483295d360b9820a2636094467
MD5 aed23fb914c3cae9b55d8672b145d409
BLAKE2b-256 6df7c286a64ec213ea42bfa67b20ce1271b0b8699ac3880854657f8ed1620759

See more details on using hashes here.

File details

Details for the file Pgenlib-0.81.2-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.81.2-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 225113136bdc7079198d4e25fe40424dfa03d388378c13c4bae1c673e03122ed
MD5 ba06c0f1e53f11d46dd17c7f6da469f0
BLAKE2b-256 2206d83bcf26ea2212baccc88b3771c78dce0eff643a1293aa3f8993c242fe02

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