int getTotalMMAmongAllMappings(const pairVector &mappings) { int totalMM = 0; // compute the total number of mismatches among all of the mappings pairVector::const_iterator mapIter = mappings.begin(); pairVector::const_iterator mapEnd = mappings.end(); for (; mapIter != mapEnd; ++mapIter) totalMM += getTotalMM(*mapIter); return totalMM; }
bool byTotalMM(const PAIR &a, const PAIR &b) { return (getTotalMM(a) < getTotalMM(b)); }