@@ -210,13 +210,14 @@ specific commands to see if they apply.
210210 This option requires indexed VCF/BCF files. Note that *-R* cannot be used
211211 in combination with *-r*.
212212
213- *--regions-overlap* '0'|'1'|'2'::
213+ *--regions-overlap* 'pos'|'record'|'variant'|' 0'|'1'|'2'::
214214 This option controls how overlapping records are determined:
215- set to *0* if the VCF record has to have POS inside a region
215+ set to *pos* or * 0* if the VCF record has to have POS inside a region
216216 (this corresponds to the default behavior of *-t/-T*);
217- set to *1* if also overlapping records with POS outside a region
218- should be included (this is the default behavior of *-r/-R*); or set
219- to *2* to include only true overlapping variation (compare
217+ set to *record* or *1* if also overlapping records with POS outside a region
218+ should be included (this is the default behavior of *-r/-R*, and includes indels
219+ with POS at the end of a region, which are technically outside the region); or set
220+ to *variant* or *2* to include only true overlapping variation (compare
220221 the full VCF representation "`TA>T-`" vs the true sequence variation "`A>-`").
221222
222223*-s, --samples* \[^]'LIST'::
@@ -274,7 +275,8 @@ The program ignores the first column and the last indicates sex (1=male, 2=femal
274275 indicates that sequences X, Y and MT should be skipped.
275276 Yet another difference between the *-t/-T* and *-r/-R* is that *-r/-R* checks for
276277 proper overlaps and considers both POS and the end position of an indel, while *-t/-T*
277- considers the POS coordinate only. Note that *-t* cannot be used in combination with *-T*.
278+ considers the POS coordinate only (by default; see also *--regions-overlap* and *--targets-overlap*).
279+ Note that *-t* cannot be used in combination with *-T*.
278280
279281*-T, --targets-file* \[^]'FILE'::
280282 Same *-t, --targets*, but reads regions from a file. Note that *-T*
@@ -289,7 +291,7 @@ Such a file can be easily created from a VCF using:
289291 bcftools query -f'%CHROM\t%POS\t%REF,%ALT\n' file.vcf | bgzip -c > als.tsv.gz && tabix -s1 -b2 -e2 als.tsv.gz
290292----
291293
292- *--targets-overlap* '0'|'1'|'2'::
294+ *--targets-overlap* 'pos'|'record'|'variant'|' 0'|'1'|'2'::
293295 Same as *--regions-overlap* but for *-t/-T*.
294296
295297*--threads* 'INT'::
0 commit comments