1 #ifndef __gamgee_variant_writer__
2 #define __gamgee_variant_writer__
8 #include "htslib/vcf.h"
26 explicit VariantWriter(
const std::string& output_fname =
"-",
const bool binary =
true);
59 static htsFile* open_file(
const std::string& output_fname,
const std::string& binary);
60 void write_header()
const;
void add_header(const VariantHeader &header)
Adds a header to the file stream.
Definition: variant_writer.cpp:21
VariantWriter(const std::string &output_fname="-", const bool binary=true)
Creates a new VariantWriter using the specified output file name.
Definition: variant_writer.cpp:5
utility class to write out a SAM/BAM/CRAM file to any stream
Definition: variant_writer.h:16
void add_record(const Variant &body)
Adds a record to the file stream.
Definition: variant_writer.cpp:26
Utility class to manipulate a Variant record.
Definition: variant.h:16
~VariantWriter()
takes care of closing the file/stream
Definition: variant_writer.cpp:17