40 #ifndef _OUTPUTALIGNMENTMAFITERATOR_H_
41 #define _OUTPUTALIGNMENTMAFITERATOR_H_
93 bool outputCoordinates =
true,
94 bool addLDHatHeader =
false,
95 const std::string& reference =
"") :
107 throw Exception(
"OutputAlignmentMafIterator (constructor 1): sequence writer should not be a NULL pointer!");
128 const std::string& file,
131 bool outputCoordinates =
true,
132 bool addLDHatHeader =
false,
133 const std::string& reference =
"") :
145 throw Exception(
"OutputAlignmentMafIterator (constructor 2): sequence writer should not be a NULL pointer!");
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.
This iterator forward the iterator given as input after having printed its content to an alignment fi...
void writeBlock(std::ostream &out, const MafBlock &block) const
OutputAlignmentMafIterator(MafIterator *iterator, std::ostream *out, OAlignment *writer, bool mask=true, bool outputCoordinates=true, bool addLDHatHeader=false, const std::string &reference="")
Creates a new OutputAlignmentMafIterator object.
OutputAlignmentMafIterator & operator=(const OutputAlignmentMafIterator &iterator)
OutputAlignmentMafIterator(MafIterator *iterator, const std::string &file, OAlignment *writer, bool mask=true, bool outputCoordinates=true, bool addLDHatHeader=false, const std::string &reference="")
Creates a new OutputAlignmentMafIterator object.
~OutputAlignmentMafIterator()
std::unique_ptr< OAlignment > writer_
OutputAlignmentMafIterator(const OutputAlignmentMafIterator &iterator)
unsigned int currentBlockIndex_
MafBlock * analyseCurrentBlock_()