Skip to main content

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))

Metadata

Release files for pgenlib 0.81.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pgenlib 0.81.1
File Size Uploaded
Pgenlib-0.81.1.tar.gz 384.5 kB Details

Release files / Pgenlib-0.81.1.tar.gz

Download URL Pgenlib-0.81.1.tar.gz
Size 384.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6fcde4c14d8a28033f1401fceb30e7d38140ff0cf24295114ef00b7ebfe904a8
BLAKE2b-256 checksum
How to use checksums
d9ccf3bbaa8da897e9a04e1a885183a0c533ba563bb3a1dbfba6680704473336
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.4

Release history Release notifications | RSS feed

0.92.0

8 release files

0.82.0

1 release file

0.81.3

1 release file

0.81.2

2 release files

This release

0.81.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page