40 #ifndef _VCFOUTPUTMAFITERATOR_H_
41 #define _VCFOUTPUTMAFITERATOR_H_
78 VcfOutputMafIterator(
MafIterator* iterator, std::ostream* out,
const std::string& reference,
const std::vector<std::string>& genotypes,
bool outputAll =
false,
bool generateDiploids =
false) :
81 for (
auto g: genotypes) {
82 std::vector<std::string> tmp;
99 VcfOutputMafIterator(
MafIterator* iterator, std::ostream* out,
const std::string& reference,
const std::vector< std::vector<std::string> >& genotypes,
bool outputAll =
false) :
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 performs a simple SNP call from the MAF blocks, and outputs the results in the Variant ...
VcfOutputMafIterator(const VcfOutputMafIterator &iterator)
VcfOutputMafIterator(MafIterator *iterator, std::ostream *out, const std::string &reference, const std::vector< std::string > &genotypes, bool outputAll=false, bool generateDiploids=false)
Build a new VcfOutputMafIterator object.
MafBlock * analyseCurrentBlock_()
void writeBlock_(std::ostream &out, const MafBlock &block) const
std::vector< std::vector< std::string > > genotypes_
VcfOutputMafIterator & operator=(const VcfOutputMafIterator &iterator)
void writeHeader_(std::ostream &out) const
VcfOutputMafIterator(MafIterator *iterator, std::ostream *out, const std::string &reference, const std::vector< std::vector< std::string > > &genotypes, bool outputAll=false)
Build a new VcfOutputMafIterator object.