S: 18 Aug 2024 (b7.4) D: 18 Aug 2024 Main functions (--distance...) (--make-grm-bin...) (--ibs-test...) (--assoc, --model) (--mh, --mh2, --homog) (--assoc, --gxe) (--linear, --logistic) Core algorithms Quick index search |
Copy number analysisRare copy number variantsThe following commands operate on .cnv + .fam filesets. (Most development has been postponed until PLINK 2.0's merge command is available for testing; many functions are incomplete.) Filtering--cnv-del --cnv-kb <minimum size in kb> --cnv-score <minimum score>
--cnv-intersect <region file> --cnv-intersect causes only segments which overlap at least one of the regions in the given file to be included in the analysis, while --cnv-exclude excludes all segments which overlap a region. Each line of the region file is expected to have the following 3-4 fields in front:
Given a file with one region name per line, --cnv-subset causes only regions named in that file to be loaded with --cnv-intersect/-exclude. --cnv-region-overlap <x> These flags modify the behavior of --cnv-{intersect,exclude}. Given a segment of length n, --cnv-overlap redefines 'intersection' to require a minimum of xn base pairs. --cnv-region-overlap instead requires a minimum of xr base pairs, where r is the region's length, while --cnv-union-overlap has the most stringent requirement: x ≥ <intersection length> / <union length>. --cnv-disrupt causes only segments with an endpoint in a region to be included/excluded. --cnv-freq-exclude-above <k> --cnv-freq-overlap [x] --cnv-freq-method2 [x] --cnv-freq-exclude-above excludes all segments where any portion is included in more than k total segments. Similarly, --cnv-freq-exclude-below excludes segments where no portion is included in k or more total segments; --cnv-freq-exclude-exact excludes segments for which there is a portion which is included in at least k total segments but no portion is included in more; and --cnv-freq-include-exact is the reverse of --cnv-freq-exclude-exact. These can be combined with --cnv-freq-overlap, which forces each 'portion' to be at least xn base pairs, where n is the segment length. Alternatively, --cnv-freq-method2 causes k to instead be compared against the number of segments (not excluding the original segment) where x ≥ <intersection length> / <union length>. For both --cnv-freq-overlap and --cnv-freq-method2, if x is zero or not given, it's treated as an infinitesimal positive value. Refer to the PLINK 1.07 documentation for more discussion of these segment filtering flags. --cnv-exclude-off-by-1 --cnv-make-map generates the .cnv.map file needed by all other PLINK CNV analysis commands to proceed. It now automatically runs when needed, so it is unnecessary to explicitly invoke this (though you may still want to for performance reasons). When automatically triggered, the new .cnv.map file is generated before any segmental filters are applied, to avoid nasty surprises when different filters are being applied to different analysis steps. It is put in the same directory and assigned the same prefix as the .cnv file, except when that might destroy existing data. In contrast, when --cnv-make-map is explicitly invoked, segmental filters are applied first, and the filename is determined by the global output prefix instead of the input .cnv filename. If there is a segment starting at bp x and ending at bp y, the resulting .cnv.map will have entries at positions x and (y+1). If the .cnv.map file was created via an explicit --cnv-make-map invocation without the 'short' modifier, it will also have an entry at position y (this is needed by PLINK 1.07, but not PLINK 1.9). For compatibility with .cnv.map files generated by third-party scripts according to the PLINK 1.07 documentation, if there is a .cnv.map entry at position y but not (y+1), .cnv segments (of length > 1) ending at position y are normally still loaded, and treated as if they had ended at position (y-1) instead. Since this can lead to slightly inaccurate results, a warning will be printed when this happens. To exclude such segments, use the --cnv-exclude-off-by-1 flag. This command causes a new .cnv fileset to be generated, with all requested filters applied. With the --cnv-freq-method2 flag and the 'freq' modifier, an extra 'FREQ' field is written to the .cnv with each overlap parameter. AnalysisThis checks for within-sample CNV overlaps (which shouldn't happen). If any are present, they are reported in plink.cnv.overlap. --cnv-indiv-perm <permutation count> ... --cnv-test [{1sided | 2sided}] <permutation count> --cnv-test-window <window size, in kb> ... --cnv-enrichment-test [permutation count] --cnv-count <region file> ... Common copy number polymorphismsThese commands operate on .gvar + .fam + .map filesets. (No commands yet.) |