|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_PLACEMENT_FORMATS_JPLACE_WRITER_H_
2 #define GENESIS_PLACEMENT_FORMATS_JPLACE_WRITER_H_
107 void write(
Sample const& sample, std::shared_ptr<utils::BaseOutputTarget> target )
const;
130 return branch_length_precision_;
139 branch_length_precision_ = value;
189 size_t branch_length_precision_ = 6;
190 std::string program_;
191 std::string invocation_;
197 #endif // include guard
Manage a set of Pqueries along with the PlacementTree where the PqueryPlacements are placed on.
JplaceWriter & branch_length_precision(size_t value)
Set the precision used for printing the branch_length floating point numbers of the reference Tree of...
Store a Json value of any kind.
size_t branch_length_precision() const
Get the precision used for printing the branch_length floating point numbers of the reference Tree of...
std::string const & program() const
Get the currently set "program" string to be written to the jplace file.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::string const & invocation() const
Get the currently set "invocation" string to be written to the jplace file.
utils::JsonDocument to_document(Sample const &sample) const
Store the data of a Sample in a JsonDocument object.
void write(Sample const &sample, std::shared_ptr< utils::BaseOutputTarget > target) const
Write a Sample to an output target, using the Jplace format.
JplaceWriter & program(std::string const &program)
Set the "program" string to be written to the jplace file.
JplaceWriter & invocation(std::string const &invocation)
Set the "invocation" string to be written to the jplace file.
JplaceWriter & operator=(JplaceWriter const &)=default