How do I filter my VCF file to only include certain coordinates from a BED file?
1
1
Entering edit mode
6.3 years ago
joomi ▴ 10

Hello,

I have a VCF file and a BED file in the form of <chr> <start> <end>. How do I filter my VCF file to include SNPs that are within the coordinates of the BED file?

Thank you!!

RNA-Seq SNP • 3.4k views
ADD COMMENT
2
Entering edit mode
6.3 years ago
cmdcolin ★ 4.0k

BEDTools has the ability to process VCF (and BED too of course), so you can use "bedtools intersect" with the VCF and BED file as input

Hope that helps

ADD COMMENT
0
Entering edit mode

Thank you very much!!

ADD REPLY
0
Entering edit mode

Hello and welcome jommi,

If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.

Upvote|Bookmark|Accept

fin swimmer

ADD REPLY

Login before adding your answer.

Traffic: 1662 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