[Genome] wiggle (bedGraph) track point size

Hiram Clawson hiram at soe.ucsc.edu
Mon Aug 13 17:10:46 PDT 2007


You might try changing this line:
                 {       /*      draw a 3 pixel height box       */
                 vgBox(vg, x1+xOff, yPointGraph, 1, 3, drawColor);
                 }

At line 845 in src/hg/hgTracks/wigTrack.c

But this is going to have a lot of impact on the overall situation
so I don't know what side effect this would have.  I rarely ever,
if ever, hear of anyone drawing points with the wiggle graphs.
Everyone leaves them as bar graphs.

If you have really sparse data, you may want to consider looking
at your data in the Genome Graphs:
http://genome.ucsc.edu/cgi-bin/hgGenome

Which only graphs lines between your data points, it is not
a bar graph.  Plus you can see all of your data on the genome
in a single graph.

--Hiram

Ginger Cheng wrote:
> Hiram,
> 
> Thank you so much for your reply. Really appreciate it. That helps. As 
> you mentioned, the image looks better where the pt density is high. But 
> it is the location where few points can be found some where I'd like the 
> pts to be larger.
> 
> Is there any place in the code to change the size? I've been trying to 
> dig around but not seeing sth inspiring.
> 
> 
> Hiram Clawson wrote:
>> Good Afternoon Ginger:
>>
>> The points graph option for wiggle tracks is used to graph a line
>> graph rather than a bar graph.  With your graph on points, turn
>> on the smoothing option to some number of pixels and your points
>> will smear into each other to create a line graph.
>>
>> Other than that, the points display will appear small if it is just a
>> single data point.  It needs other data points next to it to begin
>> looking like something.
>>
>> For the bar graph option, adjusting the graphing limits of your
>> graph will change the appearance of the bar graph.
>>
>> --Hiram
>>
>> Ginger Cheng wrote:
>>> Hello, Browser Gurus,
>>>
>>> Just wondering if there is a way to enlarge the image of 1 wiggle 
>>> (bedGraph) item. I use 'point' rather than 'bar' for my bedGraph 
>>> track and it looks pretty tiny to me
>>>
>>> thank you so much for any hint
> 
> 



More information about the Genome mailing list