Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
bool byTotalMM(const PAIR &a, const PAIR &b) {
	return (getTotalMM(a) < getTotalMM(b));
}