Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcftools stats does not return any information on the complements #2344

Closed
laura-an opened this issue Dec 19, 2024 · 2 comments
Closed

bcftools stats does not return any information on the complements #2344

laura-an opened this issue Dec 19, 2024 · 2 comments

Comments

@laura-an
Copy link

Hello,

I am encountering an issue when using bcftools stats to compare two VCF files.
I have two files. 1KG_17_test.vcf.gz is a vcf from 1000 Genomes Project with only 626 samples. It follows its typical structure:
image

Imputed.vcf.gz is the result of removing some variants from that same file and imputing them with Impute5. It has the following structure:
image
image

I am using the following command to compare and generate stats for both files and the intersection:
bcftools stats --verbose 1KG_17_test.vcf.gz imputed.vcf.gz > statistics.txt

The problem I have is that the analysis returns results for the intersection but does not give any information on both vcf separately. These are screenshots of the file statistics.txt

image
image

I run plot-vcfstats statistics.txt -p ./plots and this is a screenshot of the file summary.pdf
image

I tried removing the DS on the imputed file, but results are the same. Also, I tried doing bcftools stats for both files alone and there is no problem there. The issue is when I try to compare them.

Thank you in advance.

Best regards,
Laura

@pd3
Copy link
Member

pd3 commented Jan 8, 2025

The result suggest that all sites are present in both files. You can also try bcftools isec to get an independent view; running with -n =1 will list sites present in only one of the files.

@laura-an
Copy link
Author

laura-an commented Jan 9, 2025

Thank you!

@laura-an laura-an closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants