This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Read depth extraction

Hello. I wanted to extract the read depth information from my vcf file. Can anyone share their her/his experience in doing this. My vcf format is like this (see below)

Thank you very much!enter image description here

snps genomics

bcftools query is an option. See examples here.

1 answer

bcftools query -f '[%CHROM %POS %SAMPLE %DP\n]' in.vcf

Log in to answer this question.