Open ym-chen opened 2 months ago
Try using the collapse option
-c, --collapse snps|indels|both|all|some|none|id Controls how to treat records with duplicate positions and defines compatible records across multiple input files. Here by "compatible" we mean records which should be considered as identical by the tools. For example, when performing line intersections, the desire may be to consider as identical all sites with matching positions (bcftools isec -c all), or only sites with matching variant type (bcftools isec -c snps -c indels), or only sites with all alleles identical (bcftools isec -c none).
none only records with identical REF and ALT alleles are compatible
I used bcftools isec to find common sites in multiple vcf files. But I found a confused site. The records from vcfs are:
Even though the alts of these two sites are not the same, isec still considers these to be a common site. It's not what I expected. I wonder why isec thinks these two sites are the same.