31248f4ab0e87fe00b145fba097b9606793c2966
hiram
Tue Jan 14 14:56:44 2014 -0800
eliminate always TRUE condition of if() statement refs @12209
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 679c251..09f14f6 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -3427,33 +3427,33 @@
printLabeledPercent(org, "tandem repeat (trf) bases", net->tTrf, tSize);
if (net->qTrf >= 0)
printLabeledPercent(otherOrg, "tandem repeat (trf) bases", net->qTrf, qSize);
if (net->tR >= 0)
printLabeledPercent(org, "RepeatMasker bases", net->tR, tSize);
if (net->qR >= 0)
printLabeledPercent(otherOrg, "RepeatMasker bases", net->qR, qSize);
if (net->tOldR >= 0)
printLabeledPercent(org, "old repeat bases", net->tOldR, tSize);
if (net->qOldR >= 0)
printLabeledPercent(otherOrg, "old repeat bases", net->qOldR, qSize);
if (net->tNewR >= 0)
printLabeledPercent(org, "new repeat bases", net->tOldR, tSize);
if (net->qNewR >= 0)
printLabeledPercent(otherOrg, "new repeat bases", net->qOldR, qSize);
-if (net->tEnd >= 0)
+if (net->tEnd >= net->tStart)
printLabeledNumber(org, "size", net->tEnd - net->tStart);
-if (net->qEnd >= 0)
+if (net->qEnd >= net->qStart)
printLabeledNumber(otherOrg, "size", net->qEnd - net->qStart);
printf("
Fields above refer to entire chain or gap, not just the part inside the window.
\n");
netAlignFree(&net);
}
void tfbsConsSites(struct trackDb *tdb, char *item)
/* detail page for tfbsConsSites track */
{
boolean printedPlus = FALSE;
boolean printedMinus = FALSE;
char *dupe, *words[16];
int wordCount;
int start = cartInt(cart, "o");
struct sqlConnection *conn = hAllocConn(database);
char table[64];