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";
52 out <<
"\t" << sp <<
".src";
59 currentBlock_ = iterator_->nextBlock();
61 for (
size_t i = 0; i < species_.size(); ++i) {
62 if (i > 0) *output_ <<
"\t";
65 throw Exception(
"CoordinatesOutputMafIterator::analyseCurrentBlock_(). There is more than one sequence for species '" + species_[i] +
"' in current block.");
66 else if (seqs.size() == 0) {
67 *output_ <<
"NA\tNA\tNA\tNA";
71 *output_ << seqs[0]->getChromosome() <<
"\t" << seqs[0]->getStrand() <<
"\t" << seqs[0]->start() <<
"\t" << seqs[0]->stop();
73 *output_ <<
"\t" << seqs[0]->getSrcSize();
void writeHeader_(std::ostream &out) const
MafBlock * analyseCurrentBlock_()
A synteny block data structure, the basic unit of a MAF alignement file.
std::vector< const MafSequence * > getSequencesForSpecies(const std::string &species) const