bcftools "--filter-logic" flag, what + means?
2
0
Entering edit mode
18 months ago
Eugene A ▴ 190

Hi,

There is a flag in bcftools, which takes care of FILTER field during merge of several vcf files:

-F, --filter-logic x|+ Set the output record to PASS if any of the inputs is PASS (x), or apply all filters (+), which is the default.

frankly I cant get my head around what does "apply all filters" means here. Help is appreciated!

Best, Eugene

bcftools vcf • 1.1k views
ADD COMMENT
3
Entering edit mode
18 months ago

When you merge 3 records, if one has filter PASS and other has filter FOO, and the third has filter BAR setting --filter-logic x will return you a record with filter PASS, while --filter-logic + would return you a record with filter FOO,BAR

ADD COMMENT
0
Entering edit mode

Thanks a lot for the explanation!

ADD REPLY
0
Entering edit mode
18 months ago
raphael.B ▴ 520

When you merge 3 records, if one has filter PASS, another has filter FOO, and last as filter 'BAR', setting --filter-logic x will return you a record with filter PASS, while --filter-logic x would return you a record with filter FOO,BAR

ADD COMMENT
0
Entering edit mode

PASS + filter_name is filter_name, not PASS,filter_name. PASS means the locus hit no filter. You'll never see a PASS,<something>. Please fix that to make this an accurate answer.

ADD REPLY

Login before adding your answer.

Traffic: 2443 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6