src/hg/encode/hgEncodeVocab/hgEncodeVocab.c 1.25
1.25 2009/08/31 23:38:53 tdreszer
Added support for targetLink, lab and lots in antibodies
Index: src/hg/encode/hgEncodeVocab/hgEncodeVocab.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/encode/hgEncodeVocab/hgEncodeVocab.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -b -B -U 4 -r1.24 -r1.25
--- src/hg/encode/hgEncodeVocab/hgEncodeVocab.c 19 Aug 2009 14:33:10 -0000 1.24
+++ src/hg/encode/hgEncodeVocab/hgEncodeVocab.c 31 Aug 2009 23:38:53 -0000 1.25
@@ -48,9 +48,9 @@
void doTypeHeader(char *type)
{
if (sameString(type,"Antibody"))
{
- puts(" <TH>Term</TH><TH>Target Description</TH><TH>Antibody Description</TH><TH>Vendor ID</TH>");
+ puts(" <TH>Term</TH><TH>Target Description</TH><TH>Antibody Description</TH><TH>Vendor ID</TH><TH>Lab</TH><TH>Lots</TH><TH>Target Link</TH>");
}
else if (sameString(type,"ripAntibody"))
{
puts(" <TH>Term</TH><TH>Antibody Description</TH><TH>Target Description</TH><TH>Vendor ID</TH>");
@@ -113,8 +113,33 @@
if (u)
printf("</A>");
puts("</TD>");
+ s = hashFindVal(ra, "lab");
+ printf(" <TD>%s</TD>\n", s ? s : " ");
+
+ s = hashFindVal(ra, "lots");
+ printf(" <TD>%s</TD>\n", s ? s : " ");
+
+ s = hashFindVal(ra, "targetLink");
+ if(s)
+ {
+ printf(" <TD>");
+ u = strchr(s, '|');
+ if (u)
+ {
+ *u++ = 0;
+ printf("<A STYLE=\"text-decoration:none\" TARGET=_BLANK HREF=%s>", u);
+ }
+ printf(s);
+ if (u)
+ printf("</A>");
+ puts("</TD>\n");
+ }
+ else
+ printf(" <TD> </TD>\n");
+
+
puts("</TR>");
}
else if (sameString(type,"ripAntibody"))
{