how to exclude a region with bcftools
1
0
Entering edit mode
2.6 years ago
gubrins ▴ 350

Heys,

Quick question here. I want to exclude a region with bcftools, how can I do it? I am aware that I can check specific regions with a file.txt and

bcftools view -R file.txt file.vcf

How can I exclude the very same regions?

Thanks in advance!

bcftools • 2.0k views
ADD COMMENT
3
Entering edit mode
2.6 years ago
gubrins ▴ 350
bcftools view -T ^file.txt file.vcf

Sorry, I've just found it, just in case it is useful for my future me or others. Important to add the ^ symbol before the coordinates!

ADD COMMENT

Login before adding your answer.

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