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.
--positions pos.txt
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?
Thanks!
Code works for me :) bedtools v2.25.0
Thank you very much, it works for me.
I don't actually have a second input file. I only have a list of regions that I would like to extract. Does bedtools support an input that isn't BED/GFF/VCF?
" I only have a list of regions": means you have a BED (chrom/chromStart/chromEnd) https://genome.ucsc.edu/FAQ/FAQformat.html#format1
Ah, silly question. Thanks for the reply. I should have read the docs before making an assumption about the format. Thanks!