Pgenlib-0.93.0


توضیحات

Python wrapper for pgenlib's basic reader and writer.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل Pgenlib-0.93.0
نام Pgenlib
نسخه کتابخانه 0.93.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Christopher Chang
ایمیل نویسنده chrchang@alumni.caltech.edu
آدرس صفحه اصلی https://github.com/chrchang/plink-ng
آدرس اینترنتی https://pypi.org/project/Pgenlib/
مجوز -
This provides a basic Python API for pgenlib; see [python_api.txt](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](tests/test_pgenlib.py) for more sophisticated examples.


نیازمندی

مقدار نام
- numpy>=1.19.3


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl Pgenlib-0.93.0:

    pip install Pgenlib-0.93.0.whl


نصب پکیج tar.gz Pgenlib-0.93.0:

    pip install Pgenlib-0.93.0.tar.gz