Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edawson/libvcfh
A small library for generating VCF headers
https://github.com/edawson/libvcfh
Last synced: about 2 months ago
JSON representation
A small library for generating VCF headers
- Host: GitHub
- URL: https://github.com/edawson/libvcfh
- Owner: edawson
- License: mit
- Created: 2015-12-16T22:49:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T03:34:06.000Z (almost 5 years ago)
- Last Synced: 2023-10-20T19:36:05.908Z (about 1 year ago)
- Language: C++
- Size: 2.55 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
libVCFH
------------
Eric T Dawson
December 2015libVCFH is a set of data structures you can populate to print a VCf header. It should
be in spec with VCF4.1/4.2.## Build it
`make`## Test it
`make test; ./example.exe`## Use it
Just import vcfheader.hpp into your project and link against the library. This can be done with
``-L -I -lvcfh``. Then, in your code you can build up a vcf header and
send it to an ostream.#include
using namespace std;
using namespace vcfh;
int main(){
Header h;
h.set_date();
h.set_source("MyProgram");
h.set_reference("my_reference");
h.set_contig("Contig");
h.set_version("VCF4.2");
struct vcfh_info vi;
vi.id = "test";
vi.number = "2";
vi.type = "string";
vi.description = "Placeholder";
h.add_info(vi);
cerr << h << endl;
}## Filing bugs and feature requests
Use the [github](https://github.com/edawson/libVCFH) if you need help!