Entering edit mode
6.6 years ago
idedios
▴
30
I have a variant table with hg19 genomic coordinates that I want to use to filter a vcf. What is a good way to go about filtering the vcf assuming I am only looking for lines where the genomic coordinates match between the vcf file and my known variants table?
As per Alice, you can use BEDTools; however, this will produce output that is not in VCF format.
If you still want to have the VCF format after you filter, then use
bcftools filter --regions-file FILE
(see Here for further information).In both situations, your regions to filter should ideally be in BED format.