src/hg/hgTables/schema.c 1.66
1.66 2010/06/07 16:53:10 angie
For bigWig and BAM, provide link to format/info.
Index: src/hg/hgTables/schema.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/schema.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -b -B -U 4 -r1.65 -r1.66
--- src/hg/hgTables/schema.c 20 May 2010 16:19:43 -0000 1.65
+++ src/hg/hgTables/schema.c 7 Jun 2010 16:53:10 -0000 1.66
@@ -356,9 +356,20 @@
hPrintf("<BR>\n");
if (asObj != NULL)
hPrintf("<B>Format description:</B> %s<BR>", asObj->comment);
describeFields(db, splitTable, asObj, conn);
-
+if (tdbForConn != NULL)
+ {
+ char *type = tdbForConn->type;
+ if (startsWithWord("bigWig", type))
+ printf("<BR>This table simply points to a file in "
+ "<A HREF=\"/goldenPath/help/bigWig.html\" TARGET=_BLANK>"
+ "BigWig</A> format.<BR>\n");
+ else if (startsWithWord("bam", type))
+ printf("<BR>This table simply points to a file in "
+ "<A HREF=\"http://samtools.sourceforge.net/SAM1.pdf\" TARGET=_BLANK>"
+ "BAM</A> format.<BR>\n");
+ }
jpList = joinerRelate(joiner, db, table);
/* sort and unique list */
slUniqify(&jpList, joinerPairCmpOnAandB, joinerPairFree);