[Genome] wiggle (bedGraph) track point size

5 views
Skip to first unread message

Ginger Cheng

unread,
Aug 13, 2007, 5:34:10 PM8/13/07
to gen...@soe.ucsc.edu
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

Hiram Clawson

unread,
Aug 13, 2007, 6:53:59 PM8/13/07
to gin...@gs.washington.edu, gen...@soe.ucsc.edu
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

unread,
Aug 13, 2007, 8:02:30 PM8/13/07
to Hiram Clawson, gen...@soe.ucsc.edu
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.
--
Ze(Ginger) Cheng
Bioinformatics Specialist
Howard Hughes Medical Institute

Department of Genome Sciences
Foege Building S 433-D Box 355065
1705 NE Pacific St.
Seattle WA 98195-5065

Office: 206-543-9530
Fax: 206-221-5795
Email: gin...@gs.washington.edu

Hiram Clawson

unread,
Aug 13, 2007, 8:10:46 PM8/13/07
to gin...@gs.washington.edu, gen...@soe.ucsc.edu

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.
Reply all
Reply to author
Forward
0 new messages