[Genome] coloring custom wiggle tracks

Bob Thurman rthurman at u.washington.edu
Thu Dec 7 11:39:38 PST 2006


Oops, here's that message about using wigColorBy (that I couldn't apply 
to my situation) --

-----Original Message-----
From: Hiram Clawson [mailto:hiram at soe.ucsc.edu <http://www.soe.ucsc.edu/mailman/listinfo/genome>] 
Sent: Monday, April 10, 2006 2:16 PM
To: Ma, Jin
Cc: 'genome at soe.ucsc.edu <http://www.soe.ucsc.edu/mailman/listinfo/genome>'
Subject: Re: [Genome] Suggestion on coloring the wiggle track


Good Morning Jin:

You can get the wiggle track to color itself based on the contents
of a different track.  In the trackDb entry for the wiggle track you
want to color, place the declaration:
wigColorBy <other track name>

The wiggle will now color itself in the same manner as the other
track is colored.  The other track is some kind of simple bed track.
If you create your other bed track item colors in a color scheme
that indicates your level of significance, then the wiggle track
will indicate those colors.

--Hiram



Bob Thurman wrote:
> Hi,
>
> I have a question about coloring custom wiggle tracks.  I have two 
> wiggle tracks, one of which I am coloring with the 'color=' and 
> 'altColor=' options on the track line.  And what I'd like to do is color 
> the second track using the same color scheme as the first.  I.e., I'd 
> like the 2nd track to be green exactly when the first track is, and to 
> switch to red exactly when the first track does.  Is this possible?
>
> I found the message below, which mentions the use of wigColorBy, but I'm 
> not sure that this is applicable to my situation, and any way, I can't 
> get it to work (when I add 'wigColorBy=track1' in the second track's 
> track line, I get the message "track1 not found", even though the first 
> track has 'name=track1').
>
> Another option I tried was using the 'itemRgb' option on each data line 
> of the second track, but apparently that is not available for wiggle track.
>
> Thanks for your help.
>
> Bob
>
>   

-- 
===========================================================
Bob Thurman,  Ph.D.                    Research Scientist
Division of Medical Genetics
Noble Lab
J-205 Health Sciences Building
Box 357720
University of Washington
Seattle, WA 98195-7720                 206-543-8916
===========================================================




More information about the Genome mailing list