Median depth across samples from multi-sample VCF
0
0
Entering edit mode
2.7 years ago

Hi folks,

I am trying to extract median DP values, across samples, from each line of a multi-sample VCF. (The DP for each individual sample is given in the FORMAT columns. There are ~400,000 samples for most sites)

I know I can filter on the median DP values, (e.g. with bcftools query -i MEDIAN(DP)>30)

But I can't find a way to actually extract and print the median value.

I thought I would be able to do this with something like: bcftools query -f MEDIAN(DP)

But no dice!

I'd be grateful for any suggestions.

Alex

bcftools • 479 views
ADD COMMENT

Login before adding your answer.

Traffic: 3243 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