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/inc/pcrResult.h src/hg/inc/pcrResult.h index 28baecd..31cb90b 100644 --- src/hg/inc/pcrResult.h +++ src/hg/inc/pcrResult.h @@ -34,29 +34,29 @@ void pcrResultGetPrimers(char *fileName, char **retFPrimer, char **retRPrimer); /* Given a file whose first line is 2 words (forward primer, reverse primer) * set the ret's to upper-cased primer sequences. * Do not free the statically allocated ret's. */ void pcrResultGetPsl(char *fileName, struct targetDb *target, char *item, char *chrom, int itemStart, int itemEnd, struct psl **retItemPsl, struct psl **retOtherPsls); /* Read in psl from file. If a psl matches the given item position, set * retItemPsl to that; otherwise add it to retOtherPsls. Die if no psl * matches the given item position. */ struct trackDb *pcrResultFakeTdb(); /* Construct a trackDb record for PCR Results track. */ -char *pcrResultItemAccName(char *acc, char *name); +char *pcrResultItemAccName(char *acc, char *name, struct psl *origPsl); /* If a display name is given in addition to the acc, concatenate them * into a single name that must match a non-genomic target item's name * in the targetDb .2bit. Do not free the result. */ char *pcrResultItemAccession(char *nameIn); /* If nameIn contains a concatenate accession and display name, returns * just the accession. Do not free the result.*/ char *pcrResultItemName(char *nameIn); /* If nameIn contains a concatenated accession and display name, returns * just the name. If accession only, returns NULL. Do not free the result.*/ #endif /* PCRRESULT_H */