Entering edit mode
8 months ago
adixon3
•
0
I have a VCF from dbVar (https://ftp.ncbi.nlm.nih.gov/pub/dbVar/data/Homo_sapiens/by_study/vcf/nstd102.GRCh38.variant_call.vcf.gz) and I want to pull out all the variants which have ANY the following values in the CLNSIG field: Pathogenic, Likely_pathogenic.
If I use the following command, bcftools delivers only variants with "Pathogenic" in the CLNSIG field:
bcftools view -i 'INFO/CLNSIG ~ "Pathogenic"|"Likely_pathogenic"' nstd102.GRCh38.variant_call.vcf.gz
How do I properly use the 'OR' operator to find the union of variants that match my list of CLNSIG values?
Unfortunately this produces a VCF with a header and no variants :( I've noticed that this also happens with the following command
your version of bcftools is just too old. https://github.com/samtools/bcftools/releases/tag/1.13
Unfortunately, bcftools 1.21 produces the same results. Only thing that actually filters is a single filter term using either of the two styles:
or
As soon as I add an OR operator (e.g. "type|type_2"), it just outputs a header-only VCF.
that's strange. that syntax works on my machine.