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 >>
|