3dc5333aee8dea626a021976a1d291360f348480
angie
Thu Jul 25 10:34:12 2019 -0700
Bring BLAT results (doUserPsl) in line with hgBlat and bigPsl BLAT custom track: sort by score instead of file order. refs #23865
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index c1f6236..a0c8863 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -6588,31 +6588,31 @@
printf("
BLAT Search Alignments
\n");
printf("Click on a line to see detailed letter-by-letter display
");
parseSs(item, &pslName, &faName, &qName);
pslxFileOpen(pslName, &qt, &tt, &lf);
while ((psl = pslNext(lf)) != NULL)
{
if (sameString(psl->qName, qName))
{
slAddHead(&pslList, psl);
}
else
{
pslFree(&psl);
}
}
-slReverse(&pslList);
+slSort(&pslList, pslCmpScore);
lineFileClose(&lf);
printAlignments(pslList, start, "htcUserAli", "user", item);
pslFreeList(&pslList);
webIncludeHelpFile(USER_PSL_TRACK_NAME, TRUE);
}
void doHgGold(struct trackDb *tdb, char *fragName)
/* Click on a fragment of golden path. */
{
struct sqlConnection *conn = hAllocConn(database);
struct sqlConnection *conn2 = hAllocConn(database);
struct sqlConnection *conn3 = hAllocConn(database);
char query[256];
struct sqlResult *sr;
char **row;