602fa08316183790dd1e1d633c6d7510ae45d8cb braney Fri Feb 11 15:32:03 2011 -0800 add intersections, identifier filtering, and file length limits to BAM output diff --git src/hg/hgTables/mainPage.c src/hg/hgTables/mainPage.c index 8615f96..ff37761 100644 --- src/hg/hgTables/mainPage.c +++ src/hg/hgTables/mainPage.c @@ -584,31 +584,31 @@ } void nbSpaces(int count) /* Print some non-breaking spaces. */ { int i; for (i=0; i\n"); /* Print clade, genome and assembly line. */ { if (gotClade) { hPrintf("clade:\n"); printCladeListHtml(hGenome(database), onChangeClade()); nbSpaces(3); hPrintf("genome:\n"); printGenomeListForCladeHtml(database, onChangeOrg()); } @@ -643,30 +643,31 @@ hOnClickButton("document.customTrackForm.submit();return false;", hasCustomTracks ? CT_MANAGE_BUTTON_LABEL : CT_ADD_BUTTON_LABEL); hPrintf("\n"); } /* Print table line. */ { hPrintf(""); curTable = showTableField(curTrack, hgtaTable, TRUE); if (strchr(curTable, '.') == NULL) /* In same database */ { hti = getHti(database, curTable, conn); isPositional = htiIsPositional(hti); } + isBam = isBamTable( curTable); isWig = isWiggle(database, curTable); if (isBigWigTable(curTable)) { isPositional = TRUE; isWig = TRUE; } isMaf = isMafTable(database, curTrack, curTable); isBedGr = isBedGraph(curTable); isArray = isMicroarray(curTrack, curTable); struct trackDb *tdb = findTdbForTable(database, curTrack, curTable, ctLookupName); isPal = isPalCompatible(conn, tdb, curTable); nbSpaces(1); if (isCustomTrack(curTable)) { isChromGraphCt = isChromGraph(tdb); @@ -873,49 +874,55 @@ cgiMakeRadioButton(hgtaCompressType, textOutCompressNone, sameWord(textOutCompressNone, compressType)); hPrintf(" plain text  "); cgiMakeRadioButton(hgtaCompressType, textOutCompressGzip, sameWord(textOutCompressGzip, compressType)); hPrintf(" gzip compressed"); hPrintf("\n"); } hPrintf("\n"); /* Submit buttons. */ { hPrintf("
\n"); - if (isWig) + if (isWig || isBam) { char *name; extern char *maxOutMenu[]; char *maxOutput = maxOutMenu[0]; if (isCustomTrack(curTable)) name=filterFieldVarName("ct", curTable, "_", filterMaxOutputVar); else name=filterFieldVarName(database,curTable, "_",filterMaxOutputVar); maxOutput = cartUsualString(cart, name, maxOutMenu[0]); + if (isWig) hPrintf( "Note: to return more than %s lines, change the filter setting" " (above). The entire data set may be available for download as" " a very large file that contains the original data values (not" " compressed into the wiggle format) -- see the Downloads page." "
", maxOutput); + else if (isBam) + hPrintf( + "Note: to return more than %s lines, change the filter setting" + " (above). Please consider downloading the entire data from our Download pages." + "
", maxOutput); } else if (anySubtrackMerge(database, curTable) || anyIntersection()) { hPrintf("Note: The all fields and selected fields output formats " "are not available when a%s has been specified.
", canSubtrackMerge ? " subtrack merge or intersection" : "n intersection"); } cgiMakeButton(hgtaDoTopSubmit, "get output"); hPrintf(" "); if (isPositional || isWig) { cgiMakeButton(hgtaDoSummaryStats, "summary/statistics"); hPrintf(" "); }