1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
% VCFINTERSECT(1) vcfintersect (vcflib) | vcfintersect (VCF transformation)
% Erik Garrison and vcflib contributors
# NAME
**vcfintersect**
# SYNOPSIS
**vcfintersect** [options] [<vcf file>]
# DESCRIPTION
VCF set analysis
# OPTIONS
```
options:
-b, --bed FILE use intervals provided by this BED file
-R, --region REGION use 1-based tabix-style region (e.g. chrZ:10-20), multiples allowed
-S, --start-only don't use the reference length information in the record to determine
overlap status, just use the start posiion
-v, --invert invert the selection, printing only records which would
not have been printed out
-i, --intersect-vcf FILE use this VCF for set intersection generation
-u, --union-vcf FILE use this VCF for set union generation
-w, --window-size N compare records up to this many bp away (default 30)
-r, --reference FILE FASTA reference file, required with -i and -u
-l, --loci output whole loci when one alternate allele matches
-m, --ref-match intersect on the basis of record REF string
-t, --tag TAG attach TAG to each record's info field if it would intersect
-V, --tag-value VAL use this value to indicate that the allele is passing
'.' will be used otherwise. default: 'PASS'
-M, --merge-from FROM-TAG
-T, --merge-to TO-TAG merge from FROM-TAG used in the -i file, setting TO-TAG
in the current file.
For bed-vcf intersection, alleles which fall into the targets are retained.
Haplotype aware intersection, union and complement. Use for intersection and union of VCF files: unify on equivalent alleles within window-size bp
as determined by haplotype comparison alleles.
type: transformation
```
# EXIT VALUES
**0**
: Success
**not 0**
: Failure
# SEE ALSO
[vcflib](./vcflib.md)(1)
# OTHER
## Source code
[vcfintersect.cpp](https://github.com/vcflib/vcflib/blob/master/src/vcfintersect.cpp)
# LICENSE
Copyright 2011-2024 (C) Erik Garrison and vcflib contributors. MIT licensed.
Copyright 2020-2024 (C) Pjotr Prins.
<!--
Created with ./scripts/bin2md.rb scripts/bin2md-template.erb
-->
|