ce26615a6b46918c97156a4a4dea119f5b552538
braney
  Sun Sep 18 07:41:37 2016 -0700
make the switch to MAF summary mode be settable by a conf or cart
variable

diff --git src/hg/hgTracks/mafTrack.h src/hg/hgTracks/mafTrack.h
index 6923123..afac318 100644
--- src/hg/hgTracks/mafTrack.h
+++ src/hg/hgTracks/mafTrack.h
@@ -10,32 +10,33 @@
 #include "maf.h"
 #endif
 
 struct mafPriv
 {
 void *list;
 struct customTrack *ct;
 };
 
 struct mafPriv *getMafPriv(struct track *track);
 
 /* zoom level where summary file is used */
 static inline boolean inSummaryMode(struct cart *cart, struct trackDb *tdb, int winSize)
 {
 char *snpTable = trackDbSetting(tdb, "snpTable");
+unsigned summaryWindowSize = cartOrTdbInt(cart, tdb, "summaryWindowSize", 1000000);
 
-boolean windowBigEnough =  (winSize > 1000000);
+boolean windowBigEnough =  (winSize > summaryWindowSize);
 boolean doSnpMode = (snpTable != NULL) && cartOrTdbBoolean(cart, tdb, MAF_SHOW_SNP,FALSE);
 return windowBigEnough && !doSnpMode;
 }
 
 
 /* zoom level that displays synteny breaks and nesting brackets */
 #define MAF_DETAIL_VIEW 30000
 
 void drawMafRegionDetails(struct mafAli *mafList, int height,
         int seqStart, int seqEnd, struct hvGfx *hvg, int xOff, int yOff,
         int width, MgFont *font, Color color, Color altColor,
         enum trackVisibility vis, boolean isAxt, boolean chainBreaks,
 	boolean doSnpMode);
 /* Draw wiggle/density plot based on scoring things on the fly. */