Skip to main content

Read PLINK files into Pandas data frames

Project description

pandas-plink

Travis AppVeyor Documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pandas_plink-1.2.29-cp27-cp27m-macosx_10_6_intel.whl (64.0 kB) Copy SHA256 hash SHA256 Wheel cp27
pandas_plink-1.2.29-cp27-cp27m-manylinux1_i686.whl (70.5 kB) Copy SHA256 hash SHA256 Wheel cp27
pandas_plink-1.2.29-cp27-cp27m-manylinux1_x86_64.whl (70.9 kB) Copy SHA256 hash SHA256 Wheel cp27
pandas_plink-1.2.29-cp27-cp27mu-manylinux1_i686.whl (70.5 kB) Copy SHA256 hash SHA256 Wheel cp27
pandas_plink-1.2.29-cp27-cp27mu-manylinux1_x86_64.whl (70.9 kB) Copy SHA256 hash SHA256 Wheel cp27
pandas_plink-1.2.29-cp36-cp36m-macosx_10_6_intel.whl (64.0 kB) Copy SHA256 hash SHA256 Wheel cp36
pandas_plink-1.2.29-cp36-cp36m-manylinux1_i686.whl (67.4 kB) Copy SHA256 hash SHA256 Wheel cp36
pandas_plink-1.2.29-cp36-cp36m-manylinux1_x86_64.whl (67.8 kB) Copy SHA256 hash SHA256 Wheel cp36
pandas_plink-1.2.29-cp36-cp36m-win32.whl (63.9 kB) Copy SHA256 hash SHA256 Wheel cp36
pandas_plink-1.2.29-cp36-cp36m-win_amd64.whl (64.6 kB) Copy SHA256 hash SHA256 Wheel cp36
pandas_plink-1.2.29-cp37-cp37m-macosx_10_6_intel.whl (64.0 kB) Copy SHA256 hash SHA256 Wheel cp37
pandas_plink-1.2.29-cp37-cp37m-manylinux1_i686.whl (67.4 kB) Copy SHA256 hash SHA256 Wheel cp37
pandas_plink-1.2.29-cp37-cp37m-manylinux1_x86_64.whl (67.8 kB) Copy SHA256 hash SHA256 Wheel cp37
pandas_plink-1.2.29-cp37-cp37m-win32.whl (63.9 kB) Copy SHA256 hash SHA256 Wheel cp37
pandas_plink-1.2.29-cp37-cp37m-win_amd64.whl (64.6 kB) Copy SHA256 hash SHA256 Wheel cp37
pandas_plink-1.2.29.tar.gz (59.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page