Entering edit mode
7.3 years ago
William
★
5.3k
Did someone already create a python library for parsing bcftools stats output files?
BCFTools stats generates a txt stats file from VCF/BCF files. These text stats files contains some tab delimited tables and key value pairs that I would like to acces programmatically in python.
Depending on the bcftoools stats arguments used the content of the stats file can be different: http://www.htslib.org/doc/bcftools.html#stats
It would be nice if this already exists and don't need to write a bcftools stats parser myself.
https://pyvcf.readthedocs.io/en/latest/
pyvcf is parsing VCF files, I am looking for a parser for VCF/BCF stats files generated by bcftools stats.