sorry, this is not very clear...
• 0 views
•
link
Hello
I would like to keep the rows that have the combinations of these expressions
bcftools query -i "%FILTER='PASS' | %FILTER='haplotype' | %FILTER='germline' | %FILTER='clustered_events'" -f '%CHROM\t%POS\t%REF\t%ALT[\t%AF]\n' invcf > outvcf
ie. `germline;clustered_events` ------> should be kept
but `germline;some_other_filter_not_listed` -------> should be eliminated
Is there a way to do this with bcftools?
exclude/include:
bcftools view -e 'FILTER ~ "FILTER1"' -O u in.vcf | bcftools view -i 'FILTER ~ "FILTER2"' > out.vcf
Log in to answer this question.