6e303eeb45dbabb0e9b38bb6eaa24f3948d4908f angie Fri Feb 4 09:40:36 2011 -0800 Track #34 (dbVar for human): Color switch agreed on by NCBI, DGV andother parties: Gain is now blue, Loss is now red. diff --git src/hg/hgTracks/gvfTrack.c src/hg/hgTracks/gvfTrack.c index 12aa558..cdfd100 100644 --- src/hg/hgTracks/gvfTrack.c +++ src/hg/hgTracks/gvfTrack.c @@ -7,33 +7,33 @@ #include "bed8Attrs.h" static Color gvfColor(struct track *tg, void *item, struct hvGfx *hvg) /* Color item by var_type attribute, according to Deanna Church's document * SvRepresentation2.doc attached to redmine #34. */ { struct bed8Attrs *gvf = item; Color dbVarUnknown = hvGfxFindColorIx(hvg, 0xb2, 0xb2, 0xb2); int ix = stringArrayIx("var_type", gvf->attrTags, gvf->attrCount); if (ix < 0) return dbVarUnknown; char *varType = gvf->attrVals[ix]; if (sameString(varType, "CNV")) return MG_BLACK; else if (sameString(varType, "Gain")) - return hvGfxFindColorIx(hvg, 0xcc, 0x66, 0x00); -else if (sameString(varType, "Loss")) return hvGfxFindColorIx(hvg, 0x00, 0x00, 0xff); +else if (sameString(varType, "Loss")) + return hvGfxFindColorIx(hvg, 0xff, 0x00, 0x00); else if (sameString(varType, "Insertion")) return hvGfxFindColorIx(hvg, 0xff, 0xcc, 0x00); else if (sameString(varType, "Complex")) return hvGfxFindColorIx(hvg, 0x99, 0xcc, 0xff); else if (sameString(varType, "Unknown")) return dbVarUnknown; else if (sameString(varType, "Other")) return hvGfxFindColorIx(hvg, 0xcc, 0x99, 0xff); else if (sameString(varType, "Inversion")) return hvGfxFindColorIx(hvg, 0x99, 0x33, 0xff); // Needs pattern else if (sameString(varType, "LOH")) return hvGfxFindColorIx(hvg, 0x00, 0x00, 0xff); // Needs pattern else if (sameString(varType, "Everted")) return hvGfxFindColorIx(hvg, 0x66, 0x66, 0x66); // Needs pattern else if (sameString(varType, "Transchr"))