• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitignoreH A D01-Oct-201820 43

MakefileH A D01-Oct-2018458 2518

README.mdH A D01-Oct-20181.2 KiB4334

main.cppH A D01-Oct-2018259 1813

vcfheader.cppH A D01-Oct-20182.7 KiB11185

vcfheader.hppH A D01-Oct-20181.9 KiB7262

README.md

1libVCFH
2------------
3Eric T Dawson
4December 2015
5
6libVCFH is a set of data structures you can populate to print a VCf header. It should
7be in spec with VCF4.1/4.2.
8
9## Build it
10`make`
11
12
13## Test it
14`make test; ./example.exe`
15
16
17## Use it
18Just import vcfheader.hpp into your project and link against the library. This can be done with
19``-L<PathToVCFHLib> -I<PathToHeader> -lvcfh``. Then, in your code you can build up a vcf header and
20send it to an ostream.
21
22            #include <vcfheader.hpp>
23            using namespace std;
24            using namespace vcfh;
25            int main(){
26                Header h;
27                h.set_date();
28                h.set_source("MyProgram");
29                h.set_reference("my_reference");
30                h.set_contig("Contig");
31                h.set_version("VCF4.2");
32                struct vcfh_info vi;
33                vi.id = "test";
34                vi.number = "2";
35                vi.type = "string";
36                vi.description = "Placeholder";
37                h.add_info(vi);
38                cerr << h << endl;
39            }
40
41## Filing bugs and feature requests
42Use the [github](https://github.com/edawson/libVCFH) if you need help!
43