Skip to main content

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)

Metadata

Release files for microplink 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for microplink 0.0.1
File Size Uploaded
microplink-0.0.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for microplink 0.0.1
File Interpreter ABI Platform
microplink-0.0.1-py2-none-any.whl Python 2 none any Details

Total release size: 7.5 kB

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page