src/hg/hgTracks/rnaPLFoldTrack.c 1.9
1.9 2010/05/11 01:43:28 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/hgTracks/rnaPLFoldTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/rnaPLFoldTrack.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/hg/hgTracks/rnaPLFoldTrack.c 23 Sep 2009 18:42:18 -0000 1.8
+++ src/hg/hgTracks/rnaPLFoldTrack.c 11 May 2010 01:43:28 -0000 1.9
@@ -133,9 +133,9 @@
/* loadItems loads up items for the chromosome range indicated. */
{
int count = 0;
-bedLoadRnaLpFoldItem(tg, tg->mapName, (ItemLoader)rnaPLFoldLoad);
+bedLoadRnaLpFoldItem(tg, tg->table, (ItemLoader)rnaPLFoldLoad);
count = slCount((struct sList *)(tg->items));
tg->canPack = FALSE;
}
@@ -223,10 +223,10 @@
/* also, since it only goes to hgTrackUi, it is redundant with mapTrackBackground.
* so keep this disabled until there is something more specific like an hgc
* handler for diamonds. */
if (drawMap && xt-xl>5 && xb-xl>5)
- mapDiamondUi(hvg, xl, yl, xt, yt, xr, yr, xb, yb, name, tg->mapName,
- tg->tdb->tableName);
+ mapDiamondUi(hvg, xl, yl, xt, yt, xr, yr, xb, yb, name, tg->track,
+ tg->tdb->track);
}
void rnaPLFoldAddToDenseValueHash(struct hash *rnaPLFoldHash, unsigned a, char rnaPLFoldVal)
/* Add new values to rnaFoldLp hash or update existing values.
@@ -259,12 +259,10 @@
//struct hash *rnaPLFoldHash = newHash(20);
Color yellow = hvGfxFindRgb(hvg, &undefinedYellowColor);
char *rnaPLFoldVal = NULL;
boolean rnaPLFoldTrm = FALSE;
-struct dyString *dsRnaLpFoldTrm = newDyString(32);
int basePairOffset;
-dyStringPrintf(dsRnaLpFoldTrm, "%s_trm", tg->mapName);
if ( vis==tvDense || ( tg->limitedVisSet && tg->limitedVis==tvDense ) )
hvGfxBox(hvg, insideX, yOff, insideWidth, tg->height-1, yellow);
mapTrackBackground(tg, hvg, xOff, yOff);