Skip to content

bcftools isec outputs all variants instead of just the common variants #1489

@celinehohzm

Description

@celinehohzm

Hi,

I have two vcf files, ALL.autosomes.phase3.vcf.gz and concat_ABCD_release_2.0.1_r1_filtered.vcf.gz.

ALL.autosomes.phase3.vcf.gz has 2504 subjects, while concat_ABCD_release_2.0.1_r1_filtered.vcf.gz has 10501 subjects.

After doing
bcftools isec -c none -n=2 -p isec_ABCD_ref ALL.autosomes.phase3.vcf.gz concat_ABCD_release_2.0.1_r1_filtered.vcf.gz to get the vcf with common variants in both vcf files,

I realized that the output file isec_ABCD_ref/0000.vcf and /0001.vcf still has the same number of subjects as the original files, which are 2540 and 10501 respectively.

May I know why is bcftools isec not working and outputs all the variants even when they not all are in common?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions