9 #include "../StringSequenceTools.h"
20 throw IOException(
"Stockholm::writeAlignment: can't write to ostream output");
22 output <<
"# STOCKHOLM 1.0" << endl;
24 for (
size_t i = 0; i < sc.
getComments().size(); ++i)
26 output <<
"#=GF CC " << sc.
getComments()[i] << endl;
32 for (
size_t i = 0; i < names.size(); ++i)
35 if (names[i].size() > maxSize)
36 maxSize = names[i].size();
44 output <<
"//" << endl;
void writeAlignment(std::ostream &output, const SiteContainerInterface &sc) const override
Write a container to a stream.
virtual const SequenceType & sequence(const HashType &sequenceKey) const override=0
Retrieve a sequence object from the container.
virtual std::vector< std::string > getSequenceNames() const =0
virtual size_t getNumberOfSequences() const =0
Get the number of sequences in the container.
std::string removeWhiteSpaces(const std::string &s)
std::string resizeRight(const std::string &s, std::size_t newSize, char fill)
This alphabet is used to deal NumericAlphabet.