Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.gitignore | H A D | 01-Oct-2018 | 20 | 4 | 3 | |
Makefile | H A D | 01-Oct-2018 | 458 | 25 | 18 | |
README.md | H A D | 01-Oct-2018 | 1.2 KiB | 43 | 34 | |
main.cpp | H A D | 01-Oct-2018 | 259 | 18 | 13 | |
vcfheader.cpp | H A D | 01-Oct-2018 | 2.7 KiB | 111 | 85 | |
vcfheader.hpp | H A D | 01-Oct-2018 | 1.9 KiB | 72 | 62 |
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