create vcf from bed coordinates
1
0
Entering edit mode
2.6 years ago
gubrins ▴ 350

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 • 583 views
ADD COMMENT
1
Entering edit mode
2.6 years ago
gubrins ▴ 350

Solved!

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

Login before adding your answer.

Traffic: 1979 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6