47 for (
size_t i = 0; i < species_.size(); ++i) {
48 if (i > 0) out <<
"\t";
49 string sp = species_[i];
50 out << sp <<
".chr\t" << sp <<
".strand\t" << sp <<
".start\t" << sp <<
".stop";
57 currentBlock_ = iterator_->nextBlock();
59 for (
size_t i = 0; i < species_.size(); ++i) {
60 if (i > 0) *output_ <<
"\t";
63 throw Exception(
"CoordinatesOutputMafIterator::analyseCurrentBlock_(). There is more than one sequence for species '" + species_[i] +
"' in current block.");
64 else if (seqs.size() == 0) {
65 *output_ <<
"NA\tNA\tNA\tNA";
67 *output_ << seqs[0]->getChromosome() <<
"\t" << seqs[0]->getStrand() <<
"\t" << seqs[0]->start() <<
"\t" << seqs[0]->stop();
std::vector< const MafSequence * > getSequencesForSpecies(const std::string &species) const
void writeHeader_(std::ostream &out) const
A synteny block data structure, the basic unit of a MAF alignement file.
MafBlock * analyseCurrentBlock_()