Multiple VCF filtering
1
0
Entering edit mode
3.8 years ago

Hi!

I have a vcf with 20 samples and I want to remove from it the variants that are commons (with the same zygosity) to all samples. How can I do it?

Thanks

exom illumina wgs vcf • 755 views
ADD COMMENT
2
Entering edit mode
3.8 years ago
Ram 43k

Use bcftools view with an exclude/include expression that operates on COUNT(GT="hom") as shown in the examples here: https://samtools.github.io/bcftools/bcftools.html#expressions

ADD COMMENT
0
Entering edit mode

Thank you very much.

ADD REPLY
0
Entering edit mode

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 answer if they all work.

Upvote|Bookmark|Accept

ADD REPLY

Login before adding your answer.

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