036e633e37ba018df11c2b2cb96c1dbd2eb46320 chmalee Thu Apr 20 12:12:09 2023 -0700 Restore a blank item name in the pcr results track, but stuff the primer pair name (which is now in the psls qName) into the map item name so clicks into hgc can still show the right primer details, refs #30925 diff --git src/hg/hgTracks/cds.c src/hg/hgTracks/cds.c index 46b33cd..0d6bbb6 100644 --- src/hg/hgTracks/cds.c +++ src/hg/hgTracks/cds.c @@ -977,31 +977,31 @@ char *fPrimer, *rPrimer; pcrResultGetPrimers(primerFileName, &fPrimer, &rPrimer); int fPrimerSize = strlen(fPrimer); int rPrimerSize = strlen(rPrimer); reverseComplement(rPrimer, rPrimerSize); if (target != NULL) { struct psl *tpsl; char *words[3]; int wordCount = chopByChar(cloneString(lf->extra), '|', words, ArraySize(words)); if (wordCount != 3) errAbort("maybeGetPcrResultSeq: expected 3 |-sep'd words but got '%s'", (char *)lf->extra); char *displayName = words[0]; int ampStart = atoi(words[1]), ampEnd = atoi(words[2]); - char *realName = pcrResultItemAccName(lf->name, displayName); + char *realName = pcrResultItemAccName(lf->name, displayName, NULL); /* isPcr results are so sparse that I think the performance impact * of re-reading the psl file in the draw function is negligible. */ pcrResultGetPsl(pslFileName, target, realName, chromName, ampStart, ampEnd, &tpsl, NULL); /* Use seq+extFile if specified; otherwise just retrieve from seqFile. */ if (isNotEmpty(target->seqTable) && isNotEmpty(target->extFileTable)) { struct sqlConnection *conn = hAllocConn(database); seq = hDnaSeqGet(database, tpsl->tName, target->seqTable, target->extFileTable); hFreeConn(&conn); } else { struct twoBitFile *tbf = twoBitOpen(target->seqFile); seq = twoBitReadSeqFrag(tbf, tpsl->tName, 0, 0);