コード例 #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));
}