533112afe2a2005e80cdb1f82904ea65032d4302
braney
  Sat Oct 2 11:37:34 2021 -0700
split hg/lib into two separate libaries, one only used by the cgis

diff --git src/hg/cgilib/annoGrateWigDb.c src/hg/cgilib/annoGrateWigDb.c
new file mode 100644
index 0000000..98ae43d
--- /dev/null
+++ src/hg/cgilib/annoGrateWigDb.c
@@ -0,0 +1,17 @@
+/* annoGrateWigDb -- subclass of annoGrator for wiggle database table & file */
+
+/* Copyright (C) 2014 The Regents of the University of California 
+ * See README in this or parent directory for licensing information. */
+
+#include "annoGrateWigDb.h"
+#include "annoStreamWig.h"
+#include "wiggle.h"
+
+struct annoGrator *annoGrateWigDbNew(char *db, char *table, struct annoAssembly *aa,
+                                     enum annoGrateWigMode mode, int maxOutput)
+/* Create an annoGrator subclass for wiggle data from db.table (and the file it points to).
+ * See src/inc/annoGrateWig.h for a description of mode. */
+{
+struct annoStreamer *wigSource = annoStreamWigDbNew(db, table, aa, maxOutput);
+return annoGrateWigNew(wigSource, mode);
+}