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
Release history Release notifications | RSS feed
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.1.tar.gz
(384.5 kB
view details)
File details
Details for the file Pgenlib-0.81.1.tar.gz.
File metadata
- Download URL: Pgenlib-0.81.1.tar.gz
- Upload date:
- Size: 384.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fcde4c14d8a28033f1401fceb30e7d38140ff0cf24295114ef00b7ebfe904a8
|
|
| MD5 |
59e8d8453174a1ab2a09ecc320d7ab9e
|
|
| BLAKE2b-256 |
d9ccf3bbaa8da897e9a04e1a885183a0c533ba563bb3a1dbfba6680704473336
|