How to filter a multisample VCF based on individual sample depth?
1
0
Entering edit mode
7.4 years ago
jtwalker ▴ 20

I have a fairly large (800< sample) VCF file that I would like to filter based on the depth of individual aligned samples. I initially attempted to filter based on the DP field, but this seems to be the total depth at a given site, rather than the depth of an individual at that site. Does anyone know how I could accomplish this?

Thanks

samtools mpileup vcf gbs • 3.0k views
ADD COMMENT
2
Entering edit mode
7.4 years ago

use GATK VariantFiltration

    -select 'vc.getGenotype("SAMPLENAME").getDP() > 10'

or vcffilterjs e.g: Filtering vcf file by DP

ADD COMMENT
0
Entering edit mode

What about changing the genotypes of this sample (below 10) to missing instead of removing the sites completely?

ADD REPLY

Login before adding your answer.

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