Looking For A Vcf/Bcf C++ Library
2
2
Entering edit mode
11.5 years ago
Rlong ▴ 340

I am looking for a liberally licensed C++ library that can parse both VCF and BCF. I like vcflib, but it does not handle BCF. Suggestions?

vcf • 4.1k views
ADD COMMENT
3
Entering edit mode
11.5 years ago
pd3 ▴ 350

Try Heng's https://github.com/samtools/htslib

ADD COMMENT
1
Entering edit mode
11.5 years ago

If you can work in the SAM or BAM formats you can do a lot with the samtools header files.

http://samtools.sourceforge.net/samtools/masterTOC.shtml

On the same topic Bamtools also offers an API

https://github.com/pezmaster31/bamtools

Do you need to process the BCF?

ADD COMMENT
0
Entering edit mode

Unfortunately, I can only be assured of having VCF/BCF files, and not necessarily the original aligned BAMs. I am working on a variant annotator, and I would like for it to able to take either VCF or BCF as input, and produce the same for output.

ADD REPLY

Login before adding your answer.

Traffic: 3287 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6