59577453a851bdc6ed543d4c63335d5dcceefa06 max Thu Feb 4 04:55:06 2021 -0800 adding help directly to hgBlat output, refs #26918 diff --git src/hg/hgBlat/hgBlat.c src/hg/hgBlat/hgBlat.c index 2251b88..3a7544d 100644 --- src/hg/hgBlat/hgBlat.c +++ src/hg/hgBlat/hgBlat.c @@ -635,37 +635,44 @@ browserUrl, psl->tName, psl->tStart + 1, psl->tEnd, database, pslName, faName, uiState, unhideTrack); printf("browser "); printf("", hgcUrl, psl->tStart, pslName, cgiEncode(faName), psl->qName, psl->tName, psl->tStart, psl->tEnd, database, uiState); printf("details "); printf("%s",psl->qName); spaceOut(stdout, maxQChromNameSize - strlen(psl->qName)); printf(" %5d %5d %5d %5d %5.1f%% ", pslScore(psl), psl->qStart+1, psl->qEnd, psl->qSize, 100.0 - pslCalcMilliBad(psl, TRUE) * 0.1); printf("%s",psl->tName); spaceOut(stdout, maxTChromNameSize - strlen(psl->tName)); - printf(" %-2s %9d %9d %6d\n", + printf(" %-2s %9d %9d %6d", psl->strand, psl->tStart+1, psl->tEnd, psl->tEnd - psl->tStart); + + if (endsWith(psl->tName, "_fix")) + printf(" What is chrom_fix?"); + if (endsWith(psl->tName, "_alt")) + printf(" What is chrom_alt?"); + puts("\n"); } printf("\n"); webNewSection("Help"); - puts("

Missing a match?
What is chr_alt & chr_fix?

\n"); + puts("

Missing a match?
"); + puts("What is chr_alt & chr_fix?

\n"); puts("\n"); } pslFreeList(&pslList); } void trimUniq(bioSeq *seqList) /* Check that all seq's in list have a unique name. Try and * abbreviate longer sequence names. */ { struct hash *hash = newHash(0); bioSeq *seq; for (seq = seqList; seq != NULL; seq = seq->next) { @@ -1731,33 +1738,33 @@ printf("\n"); printf("\n"); printf("\n"); printf("\n"); cgiMakeCheckBoxWithId("allResults", allResults, "allResults"); printf("All Results (no minimum matches)"); // clicking on the All Results text clicks the checkbox. jsOnEventById("click", "allResultsText", "document.mainForm.allResults.click();" "return false;" // cancel the default ); printf("\n"); printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); +printf("\n"); +printf("\n"); +printf("\n"); printf("\n"); printf("\n"); printf("\n"); puts("\n" "Paste in a query sequence to find its location in the\n" "the genome. Multiple sequences may be searched \n" "if separated by lines starting with '>' followed by the sequence name.\n" "\n" "\n" ); puts("\n"); puts("
File Upload: "); puts("Rather than pasting a sequence, you can choose to upload a text file containing "