This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How does bcftools isec do the intersection?

Hi all,

I am just wondering how does bcftools isec do the intersection? Does it take account of other headers, e.g. REF and ALT, or it just look at the CHROM and POS and consider it as intersection despite the REF and ALT?

Thanks and cheers.

bcftools isec

1 answer

Hello Hadi M ,

bcftools isec takes CRHOM, POS, REF and ALT into account. But not the genotype.

fin swimmer

Hi- To add to your answer, maybe worth mentioning that with the option --collapse you can control what makes intersecting records compatible

Thanks for the answers both of you :) Cheers.

Log in to answer this question.