52 currentBlock_ = iterator_->nextBlock();
53 while (currentBlock_) {
54 bool foundRef =
false;
56 for (
size_t i = 0; i < currentBlock_->getNumberOfSequences() && !foundRef; ++i) {
58 if (species == ref_) {
60 chr = currentBlock_->getSequence(i).getChromosome();
65 (*logstream_ <<
"CHROMOSOME FILTER: block does not contain reference species and was removed.").endLine();
68 }
else if (chr != chr_) {
70 (*logstream_ <<
"CHROMOSOME FILTER: reference species without queried chromosome was removed.").endLine();
78 currentBlock_ = iterator_->nextBlock();
MafBlock * analyseCurrentBlock_()
A synteny block data structure, the basic unit of a MAF alignement file.
const MafSequence & getSequence(const std::string &name) const
const std::string & getSpecies() const