48 void CsvStatisticsOutputIterationListener::iterationStarts()
50 const vector<string>& header = statsIterator_->getResultsColumnNames();
51 *output_ <<
"Chr" << sep_ <<
"Start" << sep_ <<
"Stop";
52 for (
size_t i = 0; i < header.size(); ++i) {
53 *output_ << sep_ << header[i];
58 void CsvStatisticsOutputIterationListener::iterationMoves(
const MafBlock& currentBlock)
60 const vector<const BppNumberI*>& values = statsIterator_->getResults();
66 *output_ <<
"NA" << sep_ <<
"NA" << sep_ <<
"NA";
68 *output_ <<
"NA" << sep_ <<
"NA" << sep_ <<
"NA";
70 for (
size_t i = 0; i < values.size(); ++i) {
71 *output_ << sep_ << (values[i] ? values[i]->toString() :
"NA");
73 if (values[i])
delete values[i];
A synteny block data structure, the basic unit of a MAF alignement file.
bool hasSequenceForSpecies(const std::string &species) const
const MafSequence & getSequenceForSpecies(const std::string &species) const
A sequence class which is used to store data from MAF files.
const std::string & getChromosome() const
bool hasCoordinates() const