Skip to main content

Read PLINK files into Pandas data frames

Project description

PyPI-Status Conda-Forge-Status Conda-Downloads

Build-Status Win-Build-Status Codacy-Grade License-Badge Doc-Status

PLINK reader for Python. It reads binary PLINK files into Pandas data frame and Dask array. This package handles larger-than-memory data sets by reading the SNP matrix on-demand.

Install

The recommended way of installing it is via conda

conda install -c conda-forge pandas-plink

An alternative way would be via pip

pip install pandas-plink

Running the tests

After installation, you can test it

python -c "import pandas_plink; pandas_plink.test()"

as long as you have pytest.

Usage

It is as simple as

from pandas_plink import read_plink
(bim, fam, G) = read_plink('/path/to/data')

Refer to the documentation for more information.

Authors

License

This project is licensed under the MIT License - see the license file for details.

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.18.tar.gz (10.1 kB view hashes)

Uploaded Source

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