Question: How to plot the output of bedtools genomecov as a histogram using gnuplot?
0
gravatar for Jee2
7 months ago by
Jee220
Jee220 wrote:

I have genomecov output as

chr1 0 145821816 195123441 0.747331

chr1 1 28676143 195123441 0.146964

chr1 2 6883876 195123441 0.0352796

chr1 3 3340282 195123441 0.0171188

chr1 4 2296338 195123441 0.0117686

chr1 5 1775261 195123441 0.00909814

chr1 6 1423228 195123441 0.00729399

I would like to plot the output as a histogram preferably in gnuplot. How can I do that? Thanks a lot,

gnuplot histogram genomecov • 352 views
ADD COMMENTlink modified 27 days ago by adynata0 • written 7 months ago by Jee220
0
gravatar for adynata
27 days ago by
adynata0
adynata0 wrote:

if that data is in a file you could do

plot'FILE' u (($3+$4)/2.):5:($4-$3) w boxes

the location of the box is (($3+$4)/2.)

the width of the box is ($4-$3)

the height of the box is from the 5th column of your file.

if you have large files this will be slow.

cheers

ADD COMMENTlink written 27 days ago by adynata0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2111 users visited in the last hour