src/hg/lib/hdb.c 1.401

1.401 2009/04/17 19:25:26 mikep
tagAlign tables have 'sequence' column instead of 'name' column, but otherwise are BED 6 and should be interpretable like that
Index: src/hg/lib/hdb.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hdb.c,v
retrieving revision 1.400
retrieving revision 1.401
diff -b -B -U 4 -r1.400 -r1.401
--- src/hg/lib/hdb.c	15 Apr 2009 19:40:43 -0000	1.400
+++ src/hg/lib/hdb.c	17 Apr 2009 19:25:26 -0000	1.401
@@ -2589,9 +2589,10 @@
     {
     if (!fitField(hash, "name", retName))
 	if (!fitField(hash, "acc", retName))
 	    if (!fitField(hash, "frag", retName))
-		fitField(hash, "contig", retName);
+		if (!fitField(hash, "contig", retName))
+		    fitField(hash, "sequence", retName); // so that tagAlign can masquerade as BED
     fitField(hash, "score", retScore);
     fitField(hash, "strand", retStrand);
     fitField(hash, "thickStart", retCdsStart);
     fitField(hash, "thickEnd", retCdsEnd);