This is a test version of Biostars. For the public version, visit https://www.biostars.org.
create vcf from bed coordinates

Heys,

I have a silly question for you, that I am not managing to accomplish. I have a vcf file and a bed file with some coordinate positions and I would like to get a second vcf file with only the SNPs found within the coordinates of my bed file. Any suggestions?

Thanks in advance!

bash

1 answer

Solved!

bcftools view -R regions.bed file.vcf.gz

Log in to answer this question.