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

It be installed using pip:

pip install pandas-plink

Alternatively it can be intalled via conda:

conda install -c conda-forge pandas-plink

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.

Source Distribution

pandas_plink-1.2.30.tar.gz (59.7 kB view hashes)

Uploaded Source

Built Distributions

pandas_plink-1.2.30-cp37-cp37m-win_amd64.whl (65.2 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pandas_plink-1.2.30-cp37-cp37m-win32.whl (64.4 kB view hashes)

Uploaded CPython 3.7m Windows x86

pandas_plink-1.2.30-cp37-cp37m-manylinux1_x86_64.whl (68.3 kB view hashes)

Uploaded CPython 3.7m

pandas_plink-1.2.30-cp37-cp37m-manylinux1_i686.whl (68.0 kB view hashes)

Uploaded CPython 3.7m

pandas_plink-1.2.30-cp37-cp37m-macosx_10_6_intel.whl (64.6 kB view hashes)

Uploaded CPython 3.7m macOS 10.6+ intel

pandas_plink-1.2.30-cp36-cp36m-win_amd64.whl (65.2 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

pandas_plink-1.2.30-cp36-cp36m-win32.whl (64.4 kB view hashes)

Uploaded CPython 3.6m Windows x86

pandas_plink-1.2.30-cp36-cp36m-manylinux1_x86_64.whl (68.3 kB view hashes)

Uploaded CPython 3.6m

pandas_plink-1.2.30-cp36-cp36m-manylinux1_i686.whl (68.0 kB view hashes)

Uploaded CPython 3.6m

pandas_plink-1.2.30-cp36-cp36m-macosx_10_6_intel.whl (64.6 kB view hashes)

Uploaded CPython 3.6m macOS 10.6+ intel

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page