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