src/hg/encode/hgEncodeVocab/hgEncodeVocab.c 1.34
1.34 2010/05/28 23:28:06 tdreszer
Oops. Lost them all.
Index: src/hg/encode/hgEncodeVocab/hgEncodeVocab.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/encode/hgEncodeVocab/hgEncodeVocab.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -b -B -U 4 -r1.33 -r1.34
--- src/hg/encode/hgEncodeVocab/hgEncodeVocab.c 28 May 2010 23:17:01 -0000 1.33
+++ src/hg/encode/hgEncodeVocab/hgEncodeVocab.c 28 May 2010 23:28:06 -0000 1.34
@@ -416,8 +416,11 @@
// Get just the terms that match type and requested, then sort them
while ((hEl = hashNext(&hc)) != NULL)
{
ra = (struct hash *)hEl->val;
+ char *thisType = hashMustFindVal(ra,"type");
+ if(differentWord(thisType,type) && (requested == NULL || differentWord(thisType,"control")))
+ continue;
// Skip all rows that do not match term or tag if specified
if(requested && -1 == stringArrayIx(hashMustFindVal(ra, termOrTag),requested,requestCount))
continue;
slAddTail(&termList, ra);