533000276c525e0974611eb1e503320dafb02284 fanhsu Mon Feb 7 07:18:13 2011 -0800 Changed DECIPHER dup color from green to blue. diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 886e406..a95b81e 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -5140,45 +5140,45 @@ Color decipherColor(struct track *tg, void *item, struct hvGfx *hvg) /* Return color to draw DECIPHER entry */ { struct bed *bedItem = item; int col = tg->ixColor; struct sqlConnection *conn = hAllocConn(database); struct sqlResult *sr; char **row; char query[256]; char cond_str[256]; char *decipherId = NULL; /* color scheme: RED: If the entry is a deletion (mean ratio < 0) - GREEN: If the entry is a duplication (mean ratio > 0) + BLUE: If the entry is a duplication (mean ratio > 0) */ safef(cond_str, sizeof(cond_str),"name='%s' ", bedItem->name); decipherId = sqlGetField(database, "decipher", "name", cond_str); if (decipherId != NULL) { if (hTableExists(database, "decipherRaw")) { safef(query, sizeof(query), "select mean_ratio > 0 from decipherRaw where id = '%s'", decipherId); sr = sqlGetResult(conn, query); if ((row = sqlNextRow(sr)) != NULL) { if (sameWord(row[0], "1")) { - col = MG_GREEN; + col = MG_BLUE; } else { col = MG_RED; } } sqlFreeResult(&sr); /* add more logic here to check for mean_ratio = 0 (which is a problem to be fixed by DECIPHER */ safef(query, sizeof(query), "select mean_ratio = 0 from decipherRaw where id = '%s'", decipherId); sr = sqlGetResult(conn, query); if ((row = sqlNextRow(sr)) != NULL) {