52 currentBlock_ = iterator_->nextBlock();
53 while (currentBlock_) {
54 map<string, unsigned int> counts;
55 for (
size_t i = 0; i < currentBlock_->getNumberOfSequences(); ++i) {
59 bool test = counts.size() <= species_.size();
62 bool loseCrit =
false;
63 bool strictCrit =
true;
64 bool duplicate =
false;
65 for (
size_t i = 0; i < species_.size() && !duplicate; ++i) {
66 map<string, unsigned int>::iterator it = counts.find(species_[i]);
67 if (it != counts.end()) {
69 if (rmDuplicates_ && it->second > 1) {
78 if (strictCrit || (!strict_ && loseCrit))
83 currentBlock_ = iterator_->nextBlock();
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
MafBlock * analyseCurrentBlock_()