src/hg/hgTracks/encode.c 1.17
1.17 2009/02/21 02:49:25 aamp
Added filters to encodePeak tracks that work in the composite multi-view.
Index: src/hg/hgTracks/encode.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/encode.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -b -B -U 4 -r1.16 -r1.17
--- src/hg/hgTracks/encode.c 10 Feb 2009 01:22:53 -0000 1.16
+++ src/hg/hgTracks/encode.c 21 Feb 2009 02:49:25 -0000 1.17
@@ -186,9 +186,9 @@
warn("invalid q-value %lf set in filter for track %s", qVal, trackName);
cartRemoveVariableClosestToHome(cart,tdb,FALSE,ENCODE_PEAK_QVAL_FILTER_SUFFIX);
qVal = 0;
}
- dyStringPrintf(extraWhere, "(pValue >= %f) and (qValue >= %f)", pVal, qVal);
+ dyStringPrintf(extraWhere, "((pValue >= %f) or (pValue = -1)) and ((qValue >= %f) or (qValue = -1))", pVal, qVal);
}
if (sameString(extraWhere->string, ""))
return NULL;