5be304c4bdd41bd4452a4b9f1b8fcf37930079e4 braney Fri Feb 3 11:09:59 2017 -0800 allow arbitrary fields with a bigBed file to be used for labels. #18782 diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 3c07357..6017951 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -6129,30 +6129,31 @@ } } if (useMimId && sqlTableExists(conn, refLinkTable)) { if (labelStarted) dyStringAppendC(name, '/'); else labelStarted = TRUE; sqlSafef(cond_str, sizeof(cond_str), "select cast(r.omimId as char) from kgXref,%s r where kgID = '%s' and kgXref.refseq = r.mrnaAcc and r.omimId != 0",refLinkTable, lf->name); mimId = sqlQuickString(conn, cond_str); if (mimId) dyStringAppend(name, mimId); } /* should this be a hash instead? */ kgE->name = dyStringCannibalize(&name); kgE->hgg_prot = lf->extra; lf->extra = kgE; + lf->label = kgE->name; } } hFreeConn(&conn); } struct linkedFeatures *stripShortLinkedFeatures(struct linkedFeatures *list) /* Remove linked features with no tall component from list. */ { struct linkedFeatures *newList = NULL, *el, *next; for (el = list; el != NULL; el = next) { next = el->next; if (el->tallStart < el->tallEnd) slAddHead(&newList, el); }