141deaec9ba7a2912faedaf2a62fa189108b4c43 braney Thu Apr 13 12:15:01 2023 -0700 some final clean-up on logoMaf: allow the user to turn it off, and scale by the amount of the data within the clipping rectangle diff --git src/hg/hgTracks/wigCommon.h src/hg/hgTracks/wigCommon.h index ac1e2e1..84540fb 100644 --- src/hg/hgTracks/wigCommon.h +++ src/hg/hgTracks/wigCommon.h @@ -22,30 +22,31 @@ enum wiggleAlwaysZeroEnum alwaysZero; /* OFF/ON */ enum wiggleTransformFuncEnum transformFunc; /* NONE/LOG */ double minY; /* from trackDb.ra words, the absolute minimum */ double maxY; /* from trackDb.ra words, the absolute maximum */ int maxHeight; /* maximum pixels height from trackDb */ int defaultHeight; /* requested height from cart */ int minHeight; /* minimum pixels height from trackDb */ double yLineMark; /* user requested line at y = */ char *colorTrack; /* Track to use for coloring wiggle track. */ int graphColumn; /* column to be graphing (bedGraph tracks) */ boolean bedGraph; /* is this a bedGraph track ? */ boolean isMultiWig; /* If true it's a multi-wig. */ enum wiggleAggregateFunctionEnum aggregateFunction; /* NONE/TRANSPARENT/STACKED */ boolean doNegative; /* should we negate the values */ struct mafBaseProbs *baseProbs; /* if we're in logoMaf mode, this will hold the base probabilities. */ + boolean doSequenceLogo; /* should we draw a sequence logo when near baselevel? */ }; struct wigCartOptions *wigCartOptionsNew(struct cart *cart, struct trackDb *tdb, int wordCount, char *words[]); /* Create a wigCartOptions from cart contents and tdb. */ struct preDrawContainer /* A preDraw array with a little bit of extra info */ { struct preDrawContainer *nextPlaceholder; /* Refactoring code so not in list really. */ struct preDrawElement *preDraw; /* Array of values. */ int preDrawSize; /* Size of preDraw */ int preDrawZero; /* Offset from start of predraw array to data requested. We * get more because of smoothing */ int width; /* Passed in width, number of pixels to display without smooth */ double graphUpperLimit, graphLowerLimit; /* limits to the smoothed value */