60527238f7fe8afc89824e93b0d8780f1bcf65ad chmalee Wed May 6 14:38:50 2026 -0700 Rename my variants to my annotations where appropriate, refs #33808 diff --git src/hg/hgCustom/hgCustom.c src/hg/hgCustom/hgCustom.c index 4cca7023327..4720c67f9f2 100644 --- src/hg/hgCustom/hgCustom.c +++ src/hg/hgCustom/hgCustom.c @@ -1274,31 +1274,31 @@ // Build fully-qualified table name and verify existence char *dbTable = myVariantsGetDbTable(user); struct sqlConnection *conn = hAllocConn(CUSTOM_TRASH); if (!sqlTableExists(conn, dbTable)) { hFreeConn(&conn); errAbort("myVariantsCt: table does not exist for current user"); } // Emit CT text: a track line and BED9 rows filtered by current database // Plain text response, no HTML puts("Content-Type: text/plain\n"); /* Keep track name stable so re-import replaces */ char *userEnc = htmlEncode(user); - printf("track name=\"myVariants\" type=\"bed 9\" itemRgb=\"on\" visibility=\"pack\" shortLabel=\"My Variants\" longLabel=\"My Variants (%s)\"\n", userEnc); + printf("track name=\"myVariants\" type=\"bed 9\" itemRgb=\"on\" visibility=\"pack\" shortLabel=\"My Annotations\" longLabel=\"My Annotations (%s)\"\n", userEnc); freeMem(userEnc); struct dyString *query = dyStringNew(0); sqlDyStringPrintf(query, "select chrom, chromStart, chromEnd, name, score, strand, thickStart, thickEnd, itemRgb " "from %s where db='%s'", dbTable, database); struct sqlResult *sr = sqlGetResult(conn, query->string); char **row; while ((row = sqlNextRow(sr)) != NULL) { /* BED9: chrom start end name score strand thickStart thickEnd itemRgb */ printf("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", row[0], row[1], row[2], row[3], row[4], row[5], row[6], row[7], row[8]); }