e0cf10a674d7aac55aff8d39d169440716eb3f74 max Fri Aug 30 04:50:27 2024 -0700 show table browser only exons when track contains genes, refs #27633 diff --git src/hg/lib/featureBits.c src/hg/lib/featureBits.c index b3be45c..40da489 100644 --- src/hg/lib/featureBits.c +++ src/hg/lib/featureBits.c @@ -221,34 +221,34 @@ wordCount = chopString(trackQualifier, ":", words, ArraySize(words)); if (wordCount < 1) errAbort("empty trackQualifier"); *retTrack = words[0]; *retQualifier = words[1]; *retExtra = words[2]; } void fbOptionsHtiCart(struct hTableInfo *hti, struct cart *cart) /* Print out an HTML table with radio buttons for featureBits options. * Use defaults from CGI and cart. */ { boolean isGene; char *setting, *fbQual; -if (sameString("psl", hti->type)) - isGene = FALSE; -else +if (sameString("genePred", hti->type) || sameString("bigGenePred", hti->type)) isGene = TRUE; +else + isGene = FALSE; puts("
\n"); fbQual = cartCgiUsualString(cart, "fbQual", "whole"); cgiMakeRadioButton("fbQual", "whole", sameString(fbQual, "whole")); if (isGene) puts(" Whole Gene | "); else puts(" Whole Alignment | "); puts(" |
\n"); cgiMakeRadioButton("fbQual", "upstreamAll", sameString(fbQual, "upstreamAll")); puts(" Upstream by | "); setting = cartCgiUsualString(cart, "fbUpBases", "200"); cgiMakeTextVar("fbUpBases", setting, 8); puts(" bases | |
\n"); if (hti->hasBlocks) |