Is there a way to filter multiple positions from my VCF files? I am trying to use vcftools which basically gives me two different options.
--chr $(chrom) --from-bp $(start) --to-bp $(stop)
The problem with this approach is I need multiple regions. So do I just reuse these flags multiple times? Specifically, there are 2192 regions I would like to extract.
According to the docs, the input file requires a "chromosome and position", but I need multiple regions. This would work if I could specify regions.
Am I misinterpreting how to use these flags? Or is there an easier way to extract multiple regions from VCF files?