Name: QVcf
Owner: LabSquare
Description: a Variant VCF parser for Qt/C++
Created: 2017-02-18 19:10:19.0
Updated: 2017-02-18 21:49:10.0
Pushed: 2017-02-18 21:54:18.0
Homepage: null
Size: 7
Language: C++
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A simple variant vcf parser based on Qt/C++. QVcf use the same semantics than pyvcf
lude <QCoreApplication>
lude "vcfreader.h"
main(int argc, char *argv[])
QCoreApplication a(argc, argv);
vcf::VcfReader reader("yourfile.vcf");
if (reader.open())
{
qDebug()<<reader.infos().keys();
qDebug()<<reader.metadata().keys();
qDebug()<<reader.samples();
while (reader.next())
{
qDebug()<<reader.record().chrom();
qDebug()<<reader.record().pos();
qDebug()<<reader.record().ref();
qDebug()<<reader.record().alt();
}
}
return a.exec();