|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_SEQUENCE_FORMATS_FASTA_WRITER_H_
2 #define GENESIS_SEQUENCE_FORMATS_FASTA_WRITER_H_
119 void write(
Sequence const& sequence, std::shared_ptr<utils::BaseOutputTarget> target )
const;
127 void write(
SequenceSet const& sequence_set, std::shared_ptr<utils::BaseOutputTarget> target )
const;
172 size_t line_length_ = 80;
180 #endif // include guard
void write_sequence(Sequence const &sequence, std::ostream &os) const
Write a single Sequence to an output stream in Fasta format.
AbundanceNotation
Enumeration of types for how to write Sequence abundances.
FastaWriter & operator=(FastaWriter const &)=default
@ kUnderscore
Write abundances appaneded by an underscore: abc_123.
size_t line_length() const
Get the current line length.
AbundanceNotation abundance_notation() const
Get the current setting for how to write abundances.
void write(Sequence const &sequence, std::shared_ptr< utils::BaseOutputTarget > target) const
Write a single Sequence to an output target, using the Fasta format.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Store a set of Sequences.
@ kSize
Write abundances appended as a text of the form abc;size=123
@ kNone
Do not write abundances. This is the default.