labsquare/QVcf

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

QVcf

A simple variant vcf parser based on Qt/C++. QVcf use the same semantics than pyvcf

Example
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();


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.