Read PLINK files into Pandas data frames
Project description
pandas-plink
Pandas-plink is a Python package for reading PLINK binary file format. The file reading is taken place via lazy loading, meaning that it saves up memory by actually reading only the genotypes that are actually accessed by the user.
Install
We recommend installing it via conda:
conda install -c conda-forge pandas-plink
The above method is preferable because it does not require building tools, which makes the installation less prone to errors.
Alternatively, pandas-plink can also be installed using pip:
pip install pandas-plink
The above method will perform some compilation and the installation is very likely to be successful, as we test every release under Windows, Linux, and macOS platforms. If by any change it fails, please, consider submitting a new issue.
Usage
It is as simple as
from pandas_plink import read_plink
(bim, fam, G) = read_plink('/path/to/files_prefix')
for which files_prefix.bed
, files_prefix.bim
, and files_prefix.fam
contain the data.
Portions of the genotype will be read as the user access them. Please, refer to the documentation for more information.
Authors
License
This project is licensed under the MIT License.
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
Built Distributions
File details
Details for the file pandas_plink-1.2.28.tar.gz
.
File metadata
- Download URL: pandas_plink-1.2.28.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 437c58822839e97c9c1b2d2d703438026bfe45b2ee2c24ad536c01f00ed8c8c7 |
|
MD5 | e5b4dd52799cda4f7baac235edf17849 |
|
BLAKE2b-256 | e66923c665097fd5245d635c0fa0fc2f62857bb8cba06c432ce345dc2c275892 |
File details
Details for the file pandas_plink-1.2.28-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 16.4 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01c794c42ec9c07c0cfb7b83941ae877684b0d609f3be7757fdcecadeae0170 |
|
MD5 | ca2752d6ba42090761aef51164ff55ac |
|
BLAKE2b-256 | 91089643ff2fd2c009f5c777aaed4a0f9c6808b3ca8557eb0ab19642b7e98614 |
File details
Details for the file pandas_plink-1.2.28-cp37-cp37m-win32.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp37-cp37m-win32.whl
- Upload date:
- Size: 15.6 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3df1a17e8143b8ac503dfeeb021254b680eb522f94007a24cf1929e9ed32dd2f |
|
MD5 | ce636988bc0d053c29852b5cdf0952fa |
|
BLAKE2b-256 | d05b5867402a39db29d67adb4f98d6a3246293f478b6e755cde354f89535a6fc |
File details
Details for the file pandas_plink-1.2.28-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 20.4 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 447381907b6db9b3e1d276b38182b56a233238ec4afcbb8913bfa45358ebc97f |
|
MD5 | 1df958257b7ff34c6f218d962a26d6bf |
|
BLAKE2b-256 | b1cd2ab87cd30531db3c616b9ef30f8e6b7df7388372ddf3209959d887dc2806 |
File details
Details for the file pandas_plink-1.2.28-cp37-cp37m-manylinux1_i686.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp37-cp37m-manylinux1_i686.whl
- Upload date:
- Size: 20.0 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5051e98245caa05bdd1cc05e719ec26255fd7b31162d1b2bf1d4bf075012d73 |
|
MD5 | 87b5556927864086eddb45e8dc902673 |
|
BLAKE2b-256 | 6c8f74a93f7fd3cdc3fd31ee3c8963549de21cb76c6b828ae6c7359dabda6b1b |
File details
Details for the file pandas_plink-1.2.28-cp37-cp37m-macosx_10_6_intel.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp37-cp37m-macosx_10_6_intel.whl
- Upload date:
- Size: 15.6 kB
- Tags: CPython 3.7m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 882187c9d5b0f44fc131f80024dc5a3a45e80fc4fd637f83c453e971e0b7a592 |
|
MD5 | 9a6e5fcda8c73417f044cbc6e249cf3a |
|
BLAKE2b-256 | 9e535b36d13a850214aabcc76c30378d07d8952f3b8b4956ee42b6d80245cc49 |
File details
Details for the file pandas_plink-1.2.28-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 16.4 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd63d927656492ff4aac6549c3486fb67d33eaa6cdfbed0f34ff9d7eba792609 |
|
MD5 | 57d934494b609bc49709511e82da07da |
|
BLAKE2b-256 | 66e66cc02f01a31c8b8dccf39e361c591eb4687dce19645656b11d7345edf5a3 |
File details
Details for the file pandas_plink-1.2.28-cp36-cp36m-win32.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp36-cp36m-win32.whl
- Upload date:
- Size: 15.6 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f4d9be7f97029c7a186f9b31d1a1c4af36351479301841fdce2d61b6cb99f6 |
|
MD5 | 845760c2b91ff14d1af59eded482d562 |
|
BLAKE2b-256 | ddf7bce88bed48d639763d5723d7119ed3507599f143d98ee55c6b5b5a2b1efb |
File details
Details for the file pandas_plink-1.2.28-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 20.4 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6404126534ab767a3297a9aa5640f422c6c3ca99f55013025a0f9f2de8f901a |
|
MD5 | 8a145da138c6b6ba10978789eefb9da2 |
|
BLAKE2b-256 | bb7a779d71c2c492b9b9dc02d77062dad52fcefefc2e481b3ce6b7d00461a5ac |
File details
Details for the file pandas_plink-1.2.28-cp36-cp36m-manylinux1_i686.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp36-cp36m-manylinux1_i686.whl
- Upload date:
- Size: 20.0 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5bc6dc5eb7e0dd619c2a8bf426cf8db3f17e8b2bab689a7f52d181f3b349791 |
|
MD5 | b961ca87319892dbb42fcd89fb1cb718 |
|
BLAKE2b-256 | fb5e6032b4bd6cd5eb2ab7f02b6b099b4e47cb39d0792ca6fff1acfe74343ce0 |
File details
Details for the file pandas_plink-1.2.28-cp36-cp36m-macosx_10_6_intel.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp36-cp36m-macosx_10_6_intel.whl
- Upload date:
- Size: 15.6 kB
- Tags: CPython 3.6m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2618d004ef706dd673cd28a0c2424e0460b11874464d4ef64e8389d778e1d06 |
|
MD5 | 7f4158a8f2d458ee7b879dab1808a0c2 |
|
BLAKE2b-256 | 70f60abcc1e0d4900a60188c4d56a6073f379f6f0795ab5a1958d251147b692e |
File details
Details for the file pandas_plink-1.2.28-cp27-cp27mu-manylinux1_x86_64.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 23.4 kB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ddc8dcf6b6c4ec50d0a4c00dcf18b72b0447f16696fad9ef4a5c6076acf0e1b |
|
MD5 | 382038aa2db5ba46a0bfcbbf6ac07235 |
|
BLAKE2b-256 | 0e69261d36dba193271b85b25bfd8d8f7e22a6d1da8a81b2b726966398ebc42d |
File details
Details for the file pandas_plink-1.2.28-cp27-cp27mu-manylinux1_i686.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp27-cp27mu-manylinux1_i686.whl
- Upload date:
- Size: 23.0 kB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a5788d14146b66dc1563e13fe26d88b94d7cd891c1991467e435bccd32579c |
|
MD5 | 827d6f4118bc184c06b2e3e1a48728af |
|
BLAKE2b-256 | 724ff4b1632cbb372f7b323485c73b1acab201c8338bbd11eb1f62a4941df420 |
File details
Details for the file pandas_plink-1.2.28-cp27-cp27m-manylinux1_x86_64.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 23.4 kB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ee98b242b1e928be58f9d92da7741113cb1941431cba059fa5b9e3af1385cb |
|
MD5 | 14d10dbc18b5505a1df4a5f76b2260e6 |
|
BLAKE2b-256 | 79d7a3dc439ad6031f21a63b56425a99d430b6d954569db1d7874aaea2faed6a |
File details
Details for the file pandas_plink-1.2.28-cp27-cp27m-manylinux1_i686.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp27-cp27m-manylinux1_i686.whl
- Upload date:
- Size: 23.0 kB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3beef66d5ee958772465e29c964b53480009a24bea9cf16caae5b02a3300abd |
|
MD5 | 04ebcb87cdddd9c42f556c8559ee8d39 |
|
BLAKE2b-256 | 7e7563cf7099e446d45a77f0eafbee3742f70d94b29943811e05490d9a22198f |
File details
Details for the file pandas_plink-1.2.28-cp27-cp27m-macosx_10_6_intel.whl
.
File metadata
- Download URL: pandas_plink-1.2.28-cp27-cp27m-macosx_10_6_intel.whl
- Upload date:
- Size: 15.6 kB
- Tags: CPython 2.7m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5654fb75100b72773778d3cab2d747d6480eae20597ead5d4db1e610fddb6ec5 |
|
MD5 | df63bfe10f736ac79ba8612ce75019b4 |
|
BLAKE2b-256 | 20192a69b024e3c0c80786cb65b06312394108ebbeeb8ed6228ba66ffa2d2e84 |