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

PyPI:

pip install 'pip>=20.3'
pip install Pgenlib

GitHub:

pip install 'pip>=20.3'
pip install -e 'git+https://github.com/chrchang/plink-ng.git#egg=Pgenlib&subdirectory=2.0/Python'

Or install from a cloned copy:

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

You can test the package with pytest.

Example usage:
#write a 2 sample file
import numpy as np
import pgenlib as pg

with pg.PgenWriter("test.pgen".encode("utf-8"), 2, variant_ct=3, nonref_flags=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))

See tests/test_pgenlib.py for more sophisticated examples.

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.92.1.tar.gz (1.4 MB view details)

Uploaded Source

Built Distributions

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

pgenlib-0.92.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pgenlib-0.92.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

pgenlib-0.92.1-cp313-cp313-macosx_10_13_universal2.whl (896.0 kB view details)

Uploaded CPython 3.13macOS 10.13+ universal2 (ARM64, x86-64)

pgenlib-0.92.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pgenlib-0.92.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

pgenlib-0.92.1-cp312-cp312-macosx_10_13_universal2.whl (897.7 kB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

pgenlib-0.92.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pgenlib-0.92.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pgenlib-0.92.1-cp311-cp311-macosx_10_9_universal2.whl (909.2 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

pgenlib-0.92.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pgenlib-0.92.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pgenlib-0.92.1-cp310-cp310-macosx_10_9_universal2.whl (898.0 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

pgenlib-0.92.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pgenlib-0.92.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pgenlib-0.92.1-cp39-cp39-macosx_10_9_universal2.whl (899.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)

Pgenlib-0.92.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (451.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

Pgenlib-0.92.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (446.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

Pgenlib-0.92.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (446.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

File details

Details for the file pgenlib-0.92.1.tar.gz.

File metadata

  • Download URL: pgenlib-0.92.1.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pgenlib-0.92.1.tar.gz
Algorithm Hash digest
SHA256 4f3b0bf6144b2b490b9d327cb7945ac5b0870c450fc37bdbfc33417269e7121b
MD5 20bbf5988012e930af905cf762d5ba8c
BLAKE2b-256 5d152bfef04590b9e456041d89cafe039c332c86f91a65566913cb8962ea4479

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1.tar.gz:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3da6eb1a81dc12417c76867569f78af456234536a3034b74632d9e3492582f5
MD5 de75b8c09857680d886f5eb581f186aa
BLAKE2b-256 4af48f0dd3ddf2a88be8e08fa94cbba3b5656685dca9bf3c9b06afa6e9042642

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f1e45ab8ae50356a1f1656736b1985f222310ce606481d66d11fe609c0b827c4
MD5 2f5777c2b36147ac0a6a392a26f524cd
BLAKE2b-256 83f4a5d470b9d67e8b070fa72562bdf9bc653af398fb9242bb908b170759d1e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 7db81a0a342d837b8b91ee6447735e315ab047d3d27c57e62b899c6bc55957a0
MD5 8e5efcee9af4ffa917365199d2b7a890
BLAKE2b-256 0b66dda91686b9fa750995de16b640e019689dcf80aa147a39651c91db63b601

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp313-cp313-macosx_10_13_universal2.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2adb9ab33fa2792d28e0805a6c49e8afb4a6deedbfb0122c0b0de8a5aed75e3b
MD5 a26c03eb224c9b669f73f077ca0f2eba
BLAKE2b-256 3e895fa5c5ee71d2beb461ece909c7768e49ce26f4025abc58b86c840184abfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ba00959c78be61df27107e23b032409c79715b244dcf7e46be695fb8e0aa34d4
MD5 5513cc8761a4973369d0eea2c6b07bad
BLAKE2b-256 781faa8923f26f446f44d8822517aee0737f1914cd8f315656c08e4cffc56e29

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 aaa6f2dc62cc643d9ca058ff21d49e24f8e246f070342c4cb42ff2c89043c202
MD5 c2e530d54c71cc3490789cbb9921e67a
BLAKE2b-256 9a532073ea901a567bbd9a68535e2e8d3f13e1b8697dca885fbcbfd74778a57a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp312-cp312-macosx_10_13_universal2.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a59f8e29b7326219477aec0382a43eda5ceff338df6d846e9d6e6879a5918c3
MD5 8daa09eb192f52fe2e5dfed557d2c351
BLAKE2b-256 1eda950cab02e4830ea9fb6d6eec20cd7efceafd8e3dbd0ea99f058fef94b023

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f4dba4b599925b59b903f49be092881e7924dd20a1636cc29cf86a3944581b2
MD5 3bd5b099530df8d4359926f338f3b50b
BLAKE2b-256 e30a32010b7ad8c7fdd622b1e1e9f76cd2c50cbf79f7861101f5ff973ccaf800

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 bc57aeb7e4b9d87725d7f82a38c49b21a13db22cf2c82713ac06ec39ceb96bb5
MD5 8ef027fd6d14b4aa0032e0cb159aa600
BLAKE2b-256 50fdd6dd18d601cd7ca1b2ae5b8ec3b2052f0113483cc6a0d216f289fb9619ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2c08d6bff0d9ee4ae189a4dacaf3c2666514fe5ee454fa3a240e0ff73ac23854
MD5 d30a49b5b1fea76970c72f6ff2f18c1e
BLAKE2b-256 865a90762eec1431431300f9553fa3819978d0a65f960dcdf94e0328405cf423

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 885abac0d73662d12dfad836f5177fb2b1bc00edd863673e52b97b96c5e99cdc
MD5 f7d94504186ac33eee1de5239882cace
BLAKE2b-256 df10aa4412fd445f0238a331597064340b7939d73e8c1a10090e0751e02248aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 21a18d70cec894402faa287d8a591e3c834661f26828b97293abd414fd042d6e
MD5 6b73b5261768bb35da804ed29dbc969e
BLAKE2b-256 00e5bc10e6af7ff8ddba391394eccd145831241a69c82a843d5b39857cc5dfd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp310-cp310-macosx_10_9_universal2.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96a20161c361a9d0c7df896057acda1477e6a2c164feb0c11bf23ff578e1a03d
MD5 bc19de6d4474223d4ace34a511682587
BLAKE2b-256 04e87f0f07ed178b2eb3c1e373ab69cc99b6350c00a84090f71b54b1759fa76c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7999dbcb3c3537e0005079f2001571a41cb424947f9417051d2677e83865b16a
MD5 fcd0bc50a91db5fe2e38692a5a85e13b
BLAKE2b-256 258cd681fd6bd3f897ddf42d803b060d883575f48728a7beb69f99f76f4c8404

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgenlib-0.92.1-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pgenlib-0.92.1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b71f0899a0a7d9b2ccd334f47442834036dbe3ecab0c707aa8c79bc51be97744
MD5 caafdcc69657f0c603cfba8d52f52784
BLAKE2b-256 61773e6ca9f28850e84d45be6c4e65a13eb2a34381f530c651f30c4a5d523647

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgenlib-0.92.1-cp39-cp39-macosx_10_9_universal2.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file Pgenlib-0.92.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.92.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9752bc97e10df6a8a88fb7204e9f99d4f57dc3f73d495e1ab1564d82e32b81df
MD5 91049ae00c7e66b5111a7ca374dc4561
BLAKE2b-256 dbeb0e74a2358f9b5d68eb16b1d4bf876f35d833429ab5d014f9ab91f7296ea8

See more details on using hashes here.

Provenance

The following attestation bundles were made for Pgenlib-0.92.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file Pgenlib-0.92.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for Pgenlib-0.92.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e649a9a59158c2eabefbca689a91aff667557ae27dbfd0fa8f39606a073eb9f1
MD5 07af0921f431cd5d8eb3c4cda06e8a10
BLAKE2b-256 cdf034ae233e691cff189f8335bd6c268b0272c50bc732517d92134158acb678

See more details on using hashes here.

Provenance

The following attestation bundles were made for Pgenlib-0.92.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for Pgenlib-0.92.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db49a3a7c67bc4c35efb8b806200f3ea4eb4b017a6a200cd15c4578c9f225d58
MD5 af7ff702bc743713a52b41fba0c1fb5d
BLAKE2b-256 817a960a6cb249012b931ebae9439503b73e3cc66de6fabe8df6e4de24124500

See more details on using hashes here.

Provenance

The following attestation bundles were made for Pgenlib-0.92.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on chrchang/plink-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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