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

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 • 1.6k views
ADD COMMENT
2
Entering edit mode
2.0 years ago
gubrins ▴ 290
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: 1969 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