Index: src/hg/lib/hgMaf.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hgMaf.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -b -B -U 4 -r1.12 -r1.13
--- src/hg/lib/hgMaf.c	3 Sep 2008 19:19:24 -0000	1.12
+++ src/hg/lib/hgMaf.c	10 Apr 2009 19:52:43 -0000	1.13
@@ -424,4 +424,17 @@
 char option[128];
 safef(option, sizeof option, "%s.cons.%s", tdb->tableName, wig->leftLabel);
 return (cloneString(option));
 }
+
+struct consWiggle *consWiggleFind(char *db,struct trackDb *parent,char *table)
+/* Return conservation wig if it is found in the parent. */
+{
+if(parent == NULL || !startsWith("wigMaf", parent->type))
+    return NULL;
+
+struct consWiggle *wig, *wiggles = wigMafWiggles(db, parent);
+for (wig = wiggles;
+     wig != NULL && differentString(wig->table,table);
+     wig = wig->next) {}
+return wig;
+}

