You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I want to filter my vcf file using the QD (Qual score normalized by Allele Depth, QUAL/AD) metric.
To do this I have been using the following command:
I am trying to divide the QUAL value by the second value of the format AD array.
My initial vcf (calls.vcf) has around 8000 variants. Using this command reduces the number to 16. However, these variants don't satisfy the condition as you can see from the following output:
I am not sure how it is actually performing the filtering or how division is working inside the expression. Filtering by one condition works just fine. Not sure if i am missing something for how expressions work for filtering or if there is way to do this with another tool.
Thanks for your time and help. Let me know if any additional info can help.
Hope everyone is staying safe.
Best
The text was updated successfully, but these errors were encountered:
Ah, thank you for noticing and reporting the bug, now fixed by 68c8aba. Regarding the warning, I am not able to reproduce it with the latest github version. Can you please test if it indeed disappears with the latest version? http://samtools.github.io/bcftools/howtos/install.html
Hello!
I want to filter my vcf file using the QD (Qual score normalized by Allele Depth, QUAL/AD) metric.
To do this I have been using the following command:
bcftools filter -i 'QUAL/FMT/AD[0:1]>2' -o calls_filt.vcf calls.vcf
I am trying to divide the QUAL value by the second value of the format AD array.
My initial vcf (calls.vcf) has around 8000 variants. Using this command reduces the number to 16. However, these variants don't satisfy the condition as you can see from the following output:
I am not sure how it is actually performing the filtering or how division is working inside the expression. Filtering by one condition works just fine. Not sure if i am missing something for how expressions work for filtering or if there is way to do this with another tool.
Thanks for your time and help. Let me know if any additional info can help.
Hope everyone is staying safe.
Best
The text was updated successfully, but these errors were encountered: