src/hg/hgc/hgc.c 1.1547

1.1547 2009/05/28 16:48:30 mikep
show seq1,seq2 columns (non-standard bed cols 7+8) for pairedTagAlign
Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1546
retrieving revision 1.1547
diff -b -B -U 4 -r1.1546 -r1.1547
--- src/hg/hgc/hgc.c	21 May 2009 19:24:12 -0000	1.1546
+++ src/hg/hgc/hgc.c	28 May 2009 16:48:30 -0000	1.1547
@@ -1302,8 +1302,12 @@
     else
 	htmlHorizontalLine();
     bed = bedLoadN(row+hasBin, bedSize);
     bedPrintPos(bed, bedSize, tdb);
+    // check for seq1 and seq2 in columns 7+8 (eg, pairedTagAlign)
+    char *setting = trackDbSetting(tdb, BASE_COLOR_USE_SEQUENCE);
+    if (bedSize == 6 && setting && sameString(setting, "seq1Seq2"))
+	printf("<table><tr><th>Sequence 1</th><th>Sequence 2</th></tr><tr><td> %s </td><td> %s </td></tr></table>", row[hasBin+6], row[hasBin+7]);
     printCompareGenomeLinks(tdb,bed->name);
     }
 sqlFreeResult(&sr);
 getBedTopScorers(conn, tdb, table, item, start, bedSize);