Introduction, downloads

S: 7 Nov 2026 (b.1.4)

Recent version history

What's new?

Coming next

[Jump to search box]

General usage

Getting started

Flag usage summaries

Column set descriptors

Citation instructions

Standard data input

PLINK 1 binary (.bed)

PROVISIONAL_REF?

PLINK 2 binary (.pgen)

Autoconversion behavior

VCF/BCF (.vcf[.gz], .bcf)

Oxford genotype (.bgen)

Oxford haplotype (.haps)

EIGENSOFT binary

BIMBAM Mean Genotype

23andMe text

PLINK 1 text (.ped, .tped)

PLINK 1 dosage

Sample ID conversion

Dosage import settings

Generate random

Unusual chromosome IDs

Recombination map

Allele frequencies

Phenotypes

Covariates

'Cluster' import

Variant sets

Reference genome (.fa)

Input filtering

Sample ID file

Variant ID file

Interval-BED file

Set membership

Attribute-based

--extract-col-cond

QUAL, FILTER, INFO

Chromosomes

SNPs only

Palindromic SNPs

Simple variant window

Multiple variant ranges

Deduplicate variants

Sample/variant thinning

Pheno./covar. condition

Missingness

Category subset

--keep-col-match

Missing genotypes

Same-indiv selection

Number of distinct alleles

Allele frequencies/counts

Hardy-Weinberg

Imputation quality

Mendel errors

Sex

Founder status

Relationships

Main functions

Data management

--make-[b]pgen/--make-bed

--export

--output-chr

--zero-cluster

--split-par/--merge-par

--set-me-missing

--set-all-var-ids

--recover-var-ids

--update-map...

--update-ids...

--flip

--flip-scan

--ref-allele

--ref-from-fa

--normalize

--indiv-sort

--write-covar

--variance-standardize

--quantile-normalize

--split-cat-pheno

--pheno-svd

--pmerge[-list]

--write-samples

--info-to-cols

Basic statistics

--freq

--geno-counts

--sample-counts

--missing

--genotyping-rate

--test-mishap

--hardy

--mendel

--het

--check-sex/--impute-sex

--fst

--pgen-info

Pairwise diffs

--pgen-diff

--sample-diff

Linkage disequilibrium

--indep...

--r[2]-[un]phased

--ld

--ld-score

--show-tags

--blocks

Sample-distance matrices

Identity-by-state/Hamming

  (--distance...)

Relationship/covariance

  (--make-grm-bin...)

--make-king...

--king-cutoff

Runs of homozygosity

Population stratification

--pca

PCA projection

--neighbour

Association analysis

--glm

--glm ERRCODE values

--gwas-ssf

--test-missing

--adjust-file

Monte Carlo permutation

Family-based association

--tucc

Report postprocessing

--clump

--gene-report

--meta-analysis

Epistasis

--epistasis-boost

--epistasis

--twolocus

Linear scoring

--score[-list]

--variant-score

Distributed computation

Command-line help

Bundled utilities

ldsc

mtag

vcf_subset

Miscellaneous

Flag/parameter reuse

System resource usage

--loop-cats

.zst decompression

Pseudorandom numbers

Warnings as errors

.pgen validation

Resources

1000 Genomes phase 3

HGDP-CEPH

FASTA files

Errors and warnings

Output file list

Order of operations

Developer information

GitHub root

Python library

R library

Compilation

Adding new functionality

Discussion forums

Credits

File formats

Tutorials

Setup

Rules of Thumb

Data Exploration 1 — HWE, Allele Frequency Spectrum

Data Exploration 2 — Genomic Structure

Linkage

Relationship Matrix

Genome-Wide Assocation Analyses (GWAS)

Regressions

Post-Hoc

Formatting Files

bcftools

Variant IDs

Reference Alleles

Format for R

Shortcuts

Quick index search

Command-line help

--help [flag name/prefix...]

When invoked with no parameters, --help provides a summary of all PLINK flags, starting with the main functions. This is long (over 1500 lines); we recommend you pipe the output through a terminal pager like Unix less or more, or dump it to a file with e.g.

plink2 --help > plink2-help.txt

Alternatively, you can provide one or more flag names/prefixes to cause PLINK to only display information on the referenced flags, e.g.

[chrchang:~/plink-ng]$ plink2 --help abcd gneome
PLINK v2.0.0-b.1-devLM M1 (15 Oct 2026)             cog-genomics.org/plink/2.0/
(C) 2005-2026 S Purcell, C Chang, B Demaille      GNU General Public License v3
--make-king-table ['zs'] ['counts'] ['rel-check' | 'concordance-check']
                  ['cols='<col set descrip.>]
  Similar to --make-king, except results are reported in KING's original
  .kin0 text table format (with minor changes, e.g. row order is more
  friendly to incremental addition of samples).  'rel-check' restricts the
  calculation to same-FID pairs, while 'concordance-check' restricts to
  same-FID-and-IID.
  Supported column sets are:
    maybefid: FID1/FID2, if that column was in the input.  Requires 'id'.
    fid: Force FID1/FID2 even when FID was absent in the input.
    id: IID1/IID2.
    maybesid: SID1/SID2, if that column was in the input.  Requires 'id'.
    sid: Force SID1/SID2 even when SID was absent in the input.
    nsnp: Number of variants considered (autosomal, neither call missing).
    hethet: Proportion/count of considered call pairs which are het-het.
    ibs0: Proportion/count of considered call pairs which are opposite homs.
    ibs1: HET1_HOM2 and HET2_HOM1 proportions/counts.
    ibs: Hamming distance (2 * ibs0 + ibs1), / (2 * nsnp) if proportion.
    kinship: KING-robust between-family kinship estimator.
    rt: Relationship type as described by the pedigree: PO
        (parent/offspring), FS (full sibling), HS (half sibling), GG
        (grandparent/grandchild), AV (avuncular), REL (related in some
        other way the pedigree spells out), or UN.
    pkin: Kinship coefficient expected from the pedigree, on the same scale
          as the observed 'kinship' column.
  The default is maybefid,id,maybesid,nsnp,hethet,ibs0,kinship.
  hethet/ibs0/ibs1 values are proportions unless the 'counts' modifier is
  present.  If id is omitted, a .kin0.id file is also written.
  * Parent/offspring pairs cannot be told apart from full siblings by
    kinship coefficient alone; both are ~0.25.  The ibs0 column is what
    separates them: it should be much closer to zero for a parent/offspring
    pair, since a parent and child normally share an allele.

No help entry for 'abcd'.

More precisely, for each parameter you pass to --help, PLINK will first search for an exact flag name or keyword match; if it fails to find one, it will then search for exact prefix matches; and if it also fails to find any of those, it will search for Damerau-Levenshtein distance 1 matches (note the 'gneome' misspelling above; 'genome' is a keyword for --make-king-table, since --make-king-table includes much of the functionality of PLINK 1.x's --genome command).

If --help is used with other flags (other than --script and --rerun), it causes everything before it on the command line to be ignored, and everything after it to be treated as --help parameters. This is convenient when you've forgotten exactly how a flag works while in the middle of typing a long command: you can put your help request at the end of the unfinished command, and then retrieve your unfinished command line with the up arrow (in most shells, anyway).

[chrchang:~/plink-ng]$ plink2 --pfile test_data --hwe 1e-10 midp keep-fewhet --help --write-snplist
PLINK v2.0.0-b.1-devLM M1 (15 Oct 2026)             cog-genomics.org/plink/2.0/
(C) 2005-2026 S Purcell, C Chang, B Demaille      GNU General Public License v3
--help present, ignoring other flags.

--write-samples
  Report IDs of all samples which pass your filters/inclusion thresholds.

--write-snplist ['zs'] ['allow-dups']
  List all variants which pass your filters/inclusion thresholds.  Unless the
  'allow-dups' modifier is provided, this now errors out when duplicate
  variant ID(s) remain.
[chrchang:~/plink-ng]$ plink2 --pfile test_data --hwe 1e-10 midp keep-fewhet --write-snplist ...

Bundled utilities >>