c319f541bd3c9d4930907b1a8fc09a1b342efe95 markd Fri Dec 22 12:50:23 2023 -0800 rename poorly name function diff --git src/lib/psl.c src/lib/psl.c index 8ba73f2..9a0fe14 100644 --- src/lib/psl.c +++ src/lib/psl.c @@ -1342,32 +1342,32 @@ qStart = psl->qStarts[0]; tStart = psl->tStarts[0]; size = psl->blockSizes[last]; qEnd = psl->qStarts[last] + size; tEnd = psl->tStarts[last] + size; if (psl->strand[0] == '-') reverseIntRange(&qStart, &qEnd, psl->qSize); if (psl->strand[1] == '-') reverseIntRange(&tStart, &tEnd, psl->tSize); psl->qStart = qStart; psl->qEnd = qEnd; psl->tStart = tStart; psl->tEnd = tEnd; } -void pslRecalcBaseCounts(struct psl *psl) -/* Update match/mismatch base counts in PSL, assuming everything is a match */ +void pslRecalcMatchCounts(struct psl *psl) +/* Update the match/mismatch counts in PSL, assuming everything is a match. */ { psl->match = psl->misMatch = psl->repMatch = psl->nCount = 0; for (int iBlk = 0; iBlk < psl->blockCount; iBlk++) psl->match += psl->blockSizes[iBlk]; } struct psl *pslTrimToTargetRange(struct psl *oldPsl, int tMin, int tMax) /* Return psl trimmed to fit inside tMin/tMax. Note this does not * update the match/misMatch and related fields. */ { int newSize; int oldBlockCount = oldPsl->blockCount; boolean tIsRc = (oldPsl->strand[1] == '-'); int newBlockCount = 0, completeBlockCount = 0; int i;