pandas-plink-ng
Upstream project: https://github.com/limix/pandas-plink
Current fork: https://github.com/KrotosBenjamin/pandas-plink-ng
What’s different?
- Relaxed NumPy dependency → now supports NumPy ≥ 2.0.
- No other functional changes to core code or API behavior.
Overview
pandas-plink-ng provides Pythonic access to PLINK binary genotype files (.bed/.bim/.fam)
and related matrices (e.g., GCTA .rel files).
It uses lazy loading to minimize memory usage, reading genotypes only when accessed.
Notable historical changes prior to this fork are tracked in the
upstream CHANGELOG.
Installation
Install from PyPI:
pip install pandas-plink-ng
This fork ensures compatibility with the latest RAPIDS, CuPy, and localQTL GPU environments using NumPy 2.x.
If you prefer the original, CPU-focused package:
pip install pandas-plink
Usage
Usage remains identical to the upstream API:
from pandas_plink import read_plink1_bin
G = read_plink1_bin("chr11.bed", "chr11.bim", "chr11.fam", verbose=False)
print(G)
Output (example):
<xarray.DataArray 'genotype' (sample: 14, variant: 779)>
dask.array<shape=(14, 779), dtype=float64, chunksize=(14, 779)>
Coordinates:
* sample (sample) object 'B001' 'B002' ... 'B014'
* variant (variant) object '11_316849996' ... '11_345698259'
a0 (variant) <U1 ...
a1 (variant) <U1 ...
You can also read realized relationship matrices:
from pandas_plink import read_rel
K = read_rel("plink2.rel.bin")
print(K)
For full API details, refer to the original pandas-plink documentation.
Attribution
Original Author: Danilo Horta Upstream License: MIT Maintainer of this fork: Kynon J M Benjamin
License
This project remains under the MIT License. All original copyright notices are retained.
Metadata
Release files for pandas-plink-ng 2.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pandas_plink_ng-2.3.3.tar.gz | 25.3 kB | Without provenance | Details for pandas_plink_ng-2.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandas_plink_ng-2.3.3-cp311-cp311-manylinux_2_28_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.28+ x86-64 | Details for pandas_plink_ng-2.3.3-cp311-cp311-manylinux_2_28_x86_64.whl |
Total release size: 60.3 kB
Release files / pandas_plink_ng-2.3.3.tar.gz
| Download URL | pandas_plink_ng-2.3.3.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b55c169d196c795e8d050c651acc35032e09748aeeac86294f5f28b5e88f58b
|
|
BLAKE2b-256 checksum How to use checksums |
2a81f434157d5d50e4188cdf3c980d2113e1d8712de8a9d3f12b6781efb88832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.0 CPython/3.10.9 Linux/4.18.0-553.22.1.el8_10.x86_64
|
Release files / pandas_plink_ng-2.3.3-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | pandas_plink_ng-2.3.3-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 35.0 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2e73ed277eeb9837374cc31a9b498d5464effbe0e35db3d325fc1a9e56863267
|
|
BLAKE2b-256 checksum How to use checksums |
9f18a60b2af18271adc1c9de2f6874bf4dfdab4f6f1c80a40afc450152ebd4af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.0 CPython/3.10.9 Linux/4.18.0-553.22.1.el8_10.x86_64
|
Security for pandas-plink-ng 2.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.