a75cfac22803c312074299aa0dcf286ca336ce89
braney
  Wed Aug 27 13:28:08 2025 -0700
ongoing work on quickLift hgc page plus a fix for genepreds that don't
successfully quickLift

diff --git src/hg/lib/liftOver.c src/hg/lib/liftOver.c
index 659bf7b6408..5222d603496 100644
--- src/hg/lib/liftOver.c
+++ src/hg/lib/liftOver.c
@@ -1687,30 +1687,31 @@
 char *error;
 for (gp = gpList ; gp != NULL ; gp = gp->next)
     {
     // uglyf("%s %s %d %d %s\n", gp->name, gp->chrom, gp->txStart, gp->txEnd, gp->strand);
     if (preserveInput)
         {
         char *old = gp->name;
         gp->name = extendNameWithPosition(gp->name, gp->chrom, gp->txStart, gp->txEnd, TRUE);
         free(old); // genePredExtLoadAll uses cloneString to populate this
         }
     bed = genePredToBed(gp);
     error = remapBlockedBed(chainHash, bed, minMatch, minBlocks, fudgeThick,
                             multiple, db, chainTable);
     if (error)
 	{
+        gp->chrom = NULL; // this gp didn't get lifted so we want to make sure the caller can figure that out
         bedFree(&bed);
         if (unmapped)
             {
             fprintf(unmapped, "# %s\n", error);
             genePredTabOut(gp, unmapped);
             }
 	}
    else
 	{
         int exonCount = gp->exonCount;
         struct bed *bedList = bed;
         for (;  bed != NULL;  bed = bed->next)
             {
             if (bed->blockCount > exonCount)
                 errAbort("program error: need to allocate extra blocks for bed.");