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 instructions

To build this library you will first need to clone the repository:

# clone repo
git clone https://github.com/chrchang/plink-ng
# go to python folder
cd plink-ng/2.0/Python 

Then install Cython and NumPy:

pip3 install "cython>=0.29.21" "numpy>=1.19.0"

and then build and install the package

python3 setup.py build_ext
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.82.1.tar.gz (489.1 kB view details)

Uploaded Source

Built Distributions

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

Pgenlib-0.82.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

Pgenlib-0.82.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.9 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

Pgenlib-0.82.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (248.2 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

Pgenlib-0.82.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

Pgenlib-0.82.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

Pgenlib-0.82.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

Pgenlib-0.82.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

Pgenlib-0.82.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

Pgenlib-0.82.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: Pgenlib-0.82.1.tar.gz
  • Upload date:
  • Size: 489.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for Pgenlib-0.82.1.tar.gz
Algorithm Hash digest
SHA256 b471786bc152cf0c510c2bd717ca2463942839ad6e99c7f5f72b5aae84b2b319
MD5 b5e4ca15c85b1e88471327571d3e6444
BLAKE2b-256 9bd173c8eb879691b5ef443cf3c26e801590a7eac657264f80538c7541266fa8

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5918b0e7875c427c703a909d24de5c4ed6a58b5800329baeb97e13f528af2a85
MD5 b11a6e7de9f4f7223f4f0a752216d692
BLAKE2b-256 548e3a2eef4571d6d2c8604a3810c3e092c9e145839934dde6c91ecf4be63be8

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8121a202e083fc8e25c30e6a562ea73b7223cb5097b96fd5f616cc15562b251c
MD5 c04c464d0c70b2f610e428f3db9f24e3
BLAKE2b-256 fc242e6994141f63fd6c129b0bd0bbc9ef8df91e98b171a5ae0a5aeb7a01532c

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 56a2fa603283af1dff63fb9c0f0a84dadd8effe6542554c0b834c8510f0cfcdb
MD5 1d5b7454fd27e5f01b69c71079f3eed3
BLAKE2b-256 b5328dbf9cb1a3a3a6950deab99e0515a753273396ef1770b5d2491e1f8eaba9

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cce74e1c3bac60edd1ea69fcb850b02ef0329705b06bed4dd063a036047c693f
MD5 d34297fbedbf0de77103504f9b8c4549
BLAKE2b-256 30d1166d130225f03033df8ca688ef54dca200fb3de3419f0edc914afd21a3a7

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33c34e438d4084ce11ec58fbd206b1a0d84100006cb7eefa79cffb5d7a545a0b
MD5 51765080ca370792cd7b9f10742c36c7
BLAKE2b-256 2b911d7b72b61c624763fc29c3e54df394bc611080a3dc2176af2332257e8fac

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c5a61fdc5254ca042c5fdc56d7262e125b8e440966aebc0ebd9d2d35f01204f1
MD5 fcaa91785fa9af1db75c4e3b9d492168
BLAKE2b-256 2920876e704d95b3ca26e7a554532385d52f2133cd99d2f132a29fb16062cb4d

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa3af36cd957c2f5c03b8b79b47897f81be1df9e713358e0b686253b1dd7e623
MD5 511a1ec8da0fbec0d880800c46670abd
BLAKE2b-256 9a6579600073fc41faaa2b008b1bedf9233125aeaad404a973e563810268a626

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e3521ff401c0c9c2fe022ca38f81ac7d4f1e0fe7f9b5a8fa0e65be46048eb3d
MD5 34e55e8440a37cb6c94ed3cce8623caf
BLAKE2b-256 a174ade2137ac2eee449bfa959f5808cc6d1bdc6cec4cd9b4fabcd416246a889

See more details on using hashes here.

File details

Details for the file Pgenlib-0.82.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.82.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 94349d4f446148378e76f1d50a939ec6f84bfde9a722c394ddbb84b1b5adab94
MD5 b0d72a66e5bb5b0e11bb8cb2d08fb306
BLAKE2b-256 bed585dc2412def8644cccfafe6722e7d1c5411c9725366156eef4aec843ba95

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