PLINK file processing with numba
Project description
microplink
This class provides a minimal and fast interface for retrieving genotypes from Plinks's BED/BIM/FAM file trios. The BED file must fit in memory.
Requirements
numpy, pandas, and numba. These are included with many Python
distributions.
Installation
Run pip install microplink or clone this repository and run python setup.py install from the repository directory.
Usage
Typical usage:
import microplink as mic
# Equivalent to `pf = mic.PlinkFiles('test.bed', 'test.bim', 'test.fam')`
pf = mic.PlinkFiles('test')
# fetch by chromosome and position
pf.get_genotypes(chromosome=1, position=10000)
# fetch by variant name (often RSID)
pf.get_genotypes(snp='rs1235123')
# fetch by SNP integer index
pf.get_genotypes(snp_index=0)
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file microplink-0.0.1.tar.gz.
File metadata
- Download URL: microplink-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8c857876a8a302c37404fc3648e57ae51f71c507607aad7e3a97cda8335c7a8
|
|
| MD5 |
94b5127261b04b030b82e1e7d508f1e7
|
|
| BLAKE2b-256 |
4c7476cc8c0cf3e3dc659be2808031ff4a0f8803f6c77fe830e5444669931cec
|
File details
Details for the file microplink-0.0.1-py2-none-any.whl.
File metadata
- Download URL: microplink-0.0.1-py2-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94631abfa86cc3e5333e78f92be767e679fe82dece8664bfc2251b415393036f
|
|
| MD5 |
d80250f3aa0bb1dbaeb127dcc43a96ec
|
|
| BLAKE2b-256 |
b667f563f245c61cb53e15fbcd54d3615893f76d6d72df93b0e70502da2e6340
|