How do I filter my VCF file to only include certain coordinates from a BED file?
1
1
Entering edit mode
5.7 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.2k views
ADD COMMENT
2
Entering edit mode
5.7 years ago
cmdcolin ★ 3.8k

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: 3000 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