Entering edit mode
4.9 years ago
goatsrunfaster
▴
60
I have a VCF file with individuals mapped to a reference. In many cases, all of the individuals have the same allele call (although it is different from the reference). What I want to do is filter this VCF so I only have allele calls that are variable within my samples. Is there a straightforward way to do this? In the example below I want to keep Chromosome 3416, but get rid of all others:
Chromosome 72 . T G . PASS . GT 1 1 1 1 1
Chromosome 1993 . T C . PASS . GT 1 1 1 1 1
Chromosome 3416 . C T . PASS . GT 0 0 1 1 0
Chromosome 4190 . G T . PASS . GT 1 1 1 1 1