40 #ifndef _TABLEOUTPUTMAFITERATOR_H_
41 #define _TABLEOUTPUTMAFITERATOR_H_
76 const std::vector<std::string>& species,
77 const std::string& reference) :
82 *
output_ <<
"Chromosome\tPosition";
83 for (
const std::string& sp : species) {
Helper class for developping filter for maf blocks.
A synteny block data structure, the basic unit of a MAF alignement file.
Interface to loop over maf alignment blocks.
virtual MafBlock * nextBlock()=0
Get the next available alignment block.
This iterator outputs sequence states for selected species and positions.
TableOutputMafIterator & operator=(const TableOutputMafIterator &iterator)
TableOutputMafIterator(MafIterator *iterator, std::ostream *out, const std::vector< std::string > &species, const std::string &reference)
Build a new TableOutputMafIterator object.
MafBlock * analyseCurrentBlock_()
std::vector< std::string > species_
TableOutputMafIterator(const TableOutputMafIterator &iterator)
void writeBlock_(std::ostream &out, const MafBlock &block)