a1ad78bcb6927c8bea0a98e530ff8a8771cccf03 braney Wed Jun 22 14:35:37 2016 -0700 Replace the annoying cdsStartStat and cdsEndStat field descriptions in bigGenePred.as #17370 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 5798e80..fd7259b 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -1591,31 +1591,38 @@ count++; // do not print a row if the fieldName from the .as file is in the "skipFields" list if (skipIds && slNameInList(skipIds, fieldName)) continue; // skip this row if it's empty and "skipEmptyFields" option is set if (skipEmptyFields && isEmpty(fields[ix])) continue; // split this table to separate current row from the previous one, if the trackDb option is set if (sepFields && slNameInList(sepFields, fieldName)) printf("</tr></table>\n<p>\n<table class='bedExtraTbl'>"); // field description - printf("<tr><td>%s</td>", col->comment); // bold style now in HGStyle.css + char *entry; + if (sameString(fieldName, "cdsStartStat") && sameString("enum('none','unk','incmpl','cmpl')", col->comment)) + entry = "Status of CDS start annotation (none, unknown, incomplete, or complete)"; + else if (sameString(fieldName, "cdsEndStat") && sameString("enum('none','unk','incmpl','cmpl')", col->comment)) + entry = "Status of CDS end annotation (none, unknown, incomplete, or complete)"; + else + entry = col->comment; + printf("<tr><td>%s</td>", entry); // bold style now in HGStyle.css if (col->isList || col->isArray || col->lowType->stringy || asTypesIsInt(col->lowType->type)) printIdOrLinks(col, fieldToUrl, tdb, fields[ix]); else if (asTypesIsFloating(col->lowType->type)) { double valDouble = strtod(fields[ix],NULL); if (errno == 0 && valDouble != 0) printf("<td>%g</td></tr>\n", valDouble); else printf("<td>%s</td></tr>\n", fields[ix]); // decided not to print error } else printf("<td>%s</td></tr>\n", fields[ix]); } asObjectFree(&as);