c0ed836f3d4d44a2e5a602fa46b534fa80565231 braney Wed Sep 12 10:49:43 2012 -0700 more twiddling of the info about a gene (#8249) diff --git src/hg/hgGene/hgGene.c src/hg/hgGene/hgGene.c index 2f6b77b..c8f89cc 100644 --- src/hg/hgGene/hgGene.c +++ src/hg/hgGene/hgGene.c @@ -247,53 +247,53 @@ char *description = descriptionString(id, conn); int i, exonCnt = 0, cdsExonCnt = 0; int cdsStart, cdsEnd; hPrintf("%s", description); freez(&description); /* print genome position and size */ char buffer[1024]; char *commaPos; exonCnt = curGenePred->exonCount; safef(buffer, sizeof buffer, "%s:%d-%d", curGeneChrom, curGeneStart+1, curGeneEnd); commaPos = addCommasToPos(database, buffer); -hPrintf("Transcript
\n"); -hPrintf("  Position: %s ",commaPos); +hPrintf("Transcript (Including UTRs)
\n"); +hPrintf("Position: %s ",commaPos); sprintLongWithCommas(buffer, (long long)curGeneEnd - curGeneStart); hPrintf("Size: %s ", buffer); hPrintf("Exon Count: %d ", exonCnt); hPrintf("Strand: %s
\n",curGenePred->strand); cdsStart = curGenePred->cdsStart; cdsEnd = curGenePred->cdsEnd; /* count CDS exons */ if (cdsStart < cdsEnd) { for (i=0; iexonEnds[i]) && (cdsEnd >= curGenePred->exonStarts[i]) ) cdsExonCnt++; } hPrintf("Coding Region
\n"); safef(buffer, sizeof buffer, "%s:%d-%d", curGeneChrom, cdsStart+1, cdsEnd); commaPos = addCommasToPos(database, buffer); - hPrintf("  Position: %s ",commaPos); + hPrintf("Position: %s ",commaPos); sprintLongWithCommas(buffer, (long long)cdsEnd - cdsStart); hPrintf("Size: %s ", buffer); hPrintf("Coding Exon Count: %d \n", cdsExonCnt); } fflush(stdout); } char *sectionSetting(struct section *section, char *name) /* Return section setting value if it exists. */ { return hashFindVal(section->settings, name); } char *sectionRequiredSetting(struct section *section, char *name) /* Return section setting. Squawk and die if it doesn't exist. */