909e7e221b0f321d5d43c6507c1edcda89699875
braney
  Wed Jul 16 17:54:51 2025 -0700
oops, forgot the new bedMethyl.c file

diff --git src/hg/hgTables/bedMethyl.c src/hg/hgTables/bedMethyl.c
new file mode 100644
index 00000000000..b905bd61b20
--- /dev/null
+++ src/hg/hgTables/bedMethyl.c
@@ -0,0 +1,52 @@
+/* bedMethyl - stuff to handle Hi-C stuff in table browser. */
+
+/* Copyright (C) 2019 The Regents of the University of California 
+ * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
+
+#include "common.h"
+#include "hash.h"
+//#include "linefile.h"
+//#include "dystring.h"
+//#include "localmem.h"
+#include "jksql.h"
+#include "grp.h"
+//#include "cheapcgi.h"
+//#include "cart.h"
+//#include "web.h"
+////#include "bed.h"
+//#include "hdb.h"
+#include "trackDb.h"
+//#include "obscure.h"
+//#include "hmmstats.h"
+//#include "correlate.h"
+//#include "asParse.h"
+//#include "bbiFile.h"
+//#include "bigBed.h"
+#include "hubConnect.h"
+//#include "trackHub.h"
+#include "hgTables.h"
+//#include "asFilter.h"
+//#include "xmlEscape.h"
+#include "bedMethyl.h"
+//#include "interact.h"
+//#include "hgConfig.h"
+//#include "chromAlias.h"
+
+boolean isBedMethylTable(char *table)
+/* Return TRUE if table corresponds to a bedMethyl file. */
+{
+if (isHubTrack(table))
+    {
+    struct trackDb *tdb = hashFindVal(fullTableToTdbHash, table);
+    return sameWord("bedMethyl", tdb->type);
+    }
+else
+    return trackIsType(database, table, curTrack, "bedMethyl", ctLookupName);
+}
+
+struct sqlFieldType *bedMethylListFieldsAndTypes()
+/* Get fields of bedMethyl as list of sqlFieldType (again, this is really just the list of interact fields. */
+{
+struct asObject *as = bedMethylAsObj();
+return sqlFieldTypesFromAs(as);
+}