Skip to content
Projetos

Sobre

PLINK is a free, open-source whole genome association analysis toolset, designed to perform a range of basic, large-scale analyses in a computationally efficient manner. This is a comprehensive update to it.

Ferramentas de desenvolvimento

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+2
em 15 dias
+4
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

plink-ng

Functional tests pgenlib tests License Paper Forum

Homebrew plink1 Homebrew plink-ng Bioconda plink Bioconda plink2 PyPI pgenlib CRAN pgenlibr

Source code for PLINK 1.9 and PLINK 2.0, the successors to Shaun Purcell's PLINK 1.07 (https://zzz.nyspi.org/plink/), a whole-genome association analysis toolset.

Which version?

PLINK 1.9 (1.9/) can typically be used as a drop-in replacement for PLINK 1.07 that scales to much larger datasets. It works with the .bed/.bim/.fam fileset. It left beta with the 1.9.0 release in September 2026; a few rarely-used PLINK 1.07 commands are still absent. Active feature development for it ended in 2016, and it now receives only bugfixes.

PLINK 2.0 (2.0/) is designed to handle VCF files and dosage data, and is under active development. Its native format is the .pgen/.pvar/.psam fileset, which stores dosages, phase and multiallelic variants; it also reads and writes PLINK 1 filesets. Most features other than multiallelic-dosage support are now in place. See 2.0/README.md for more details.

Installing

Both versions are available from Homebrew (macOS and Linux):

brew install plink1    # PLINK 1.9, installs `plink`
brew install plink-ng  # PLINK 2.0, installs `plink2` and `pgen_compress`

Bioconda packages both as well (conda install -c conda-forge -c bioconda plink plink2), and BioContainers builds Docker/Singularity images from those packages (quay.io/biocontainers/plink2, quay.io/biocontainers/plink).

Homebrew and Bioconda track tagged releases. The documentation pages above have the latest builds for Linux, macOS and Windows.

Building from source

PLINK 2.0 needs a C/C++ compiler, zlib and zstd, plus BLAS/LAPACK (Accelerate on macOS; e.g. OpenBLAS on Linux):

cd 2.0/build_dynamic
make -j8

This builds plink2 and pgen_compress. The Makefile header lists the build options (AVX2, MKL/AOCL, static linking, no LAPACK, ...).

PLINK 1.9:

cd 1.9
make -j8 ZLIB=-lz                                          # macOS
make -j8 ZLIB=-lz BLASFLAGS="-llapack -lopenblas"         # Linux

On Debian/Ubuntu, the dependencies are build-essential libopenblas-dev liblapack-dev liblapacke-dev zlib1g-dev libzstd-dev.

Libraries

  • C/C++ (2.0/include/): primarily two LGPL-licensed libraries, pgenlib (reads and writes .pgen files) and plink2_text (fast line reader with gzip/Zstd decompression). The .pgen format is specified in pgen_spec/pgen_spec.pdf.
  • Python: pip install pgenlib (2.0/Python).
  • R: install.packages("pgenlibr") (CRAN, source in 2.0/pgenlibr).

Tests

2.0/Tests holds a self-contained suite that compares plink2 against plink 1.9 and checks a number of round trips. It needs plink (1.9) on the PATH:

cd 2.0/Tests
./run_tests.sh ../build_dynamic

Branches

Branch Contents
master the latest release; moves only when a new version is tagged
dev ongoing development; open pull requests against this branch
alphaN_patch bugfix backports for the alpha N series, from which its patch releases are cut

A checkout of master builds the same code as the newest prebuilt binary. New features and fixes land on dev first and reach master with the next release.

1.9/Tests holds PLINK 1.9 regression tests. They take the PLINK 1.9 build directory (or use plink from the PATH if it is empty or omitted), and many use plink2 as a reference:

cd 1.9/Tests
./run_tests.sh .. ../../2.0/build_dynamic

Repository layout

Directory Contents
1.9/ PLINK 1.9
2.0/ PLINK 2.0, with include/ (pgenlib), Python/, pgenlibr/, utils/ and Tests/
pgen_spec/ .pgen format specification

License

PLINK 1.9 and PLINK 2.0 are GPLv3 (see 1.9/LICENSE and 2.0/COPYING). The libraries in 2.0/include/ are LGPLv3 (2.0/COPYING.LESSER).

Explore projetos relacionados

Carregando…