src/hg/lib/trackDbCustom.c 1.67
1.67 2009/07/17 06:24:58 sugnet
Adding support for Fantom CAGE 4 track and filtering beds based on their name.
Index: src/hg/lib/trackDbCustom.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/trackDbCustom.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -b -B -U 4 -r1.66 -r1.67
--- src/hg/lib/trackDbCustom.c 22 May 2009 10:11:16 -0000 1.66
+++ src/hg/lib/trackDbCustom.c 17 Jul 2009 06:24:58 -0000 1.67
@@ -679,9 +679,11 @@
else if(startsWith("bed ", tdb->type)) // TODO: Only these are configurable so far
{
char *words[3];
chopLine(cloneString( tdb->type), words);
- if (atoi(words[1]) >= 5 && trackDbSetting(tdb, "noScoreFilter") == NULL)
+ if (trackDbSetting(tdb, "bedFilter") != NULL)
+ cType = cfgBedFilt;
+ else if (atoi(words[1]) >= 5 && trackDbSetting(tdb, "noScoreFilter") == NULL)
cType = cfgBedScore;
}
else if(startsWith("chain",tdb->type))
cType = cfgChain;