55 MafBlock* block = iterator_->nextBlock();
58 writeBlock(*output_, *block);
61 string start =
"StartNA";
62 string stop =
"StopNA";
74 std::ofstream output(file.c_str(), ios::out);
76 writeBlock(output, *block);
86 SequenceContainerTools::convertContainer<AlignedSequenceContainer, AlignedSequenceContainer, BasicSequence>(block.
getAlignment(), aln);
99 writer_->writeAlignment(out, aln);
size_t getNumberOfSites() const
A synteny block data structure, the basic unit of a MAF alignement file.
const MafSequence & getSequence(const std::string &name) const
AlignedSequenceContainer & getAlignment()
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
const std::string & getSpecies() const
bool hasCoordinates() const
void writeBlock(std::ostream &out, const MafBlock &block) const
MafBlock * analyseCurrentBlock_()
size_t getNumberOfSequences() const
void setSequencesNames(const std::vector< std::string > &names, bool checkNames=true)
void replaceAll(std::string &target, const std::string &query, const std::string &replacement)
std::string toString(T t)