예제 #1
0
파일: Ancillary.cpp 프로젝트: arq5x/Hydra
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;
}
예제 #2
0
파일: Sort.cpp 프로젝트: BIGLabHYU/Hydra
bool byTotalMM(const PAIR &a, const PAIR &b) {
	return (getTotalMM(a) < getTotalMM(b));
}