<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Lincoln,<br>
<br>
That is correct, the histogram works when it is the primary stanza, but
not the semantically zoomed stanza. I applied the patch and now it
works great. Thanks so much for your help.<br>
<br>
Noah<br>
<br>
On 6/15/10 12:19 PM, Lincoln Stein wrote:
<blockquote
 cite="mid:AANLkTim11DKdA82MtLf-Gs5nXSbw4Bdw17OuofvLn8ox@mail.gmail.com"
 type="cite">Hi Noah,
  <div><br>
  </div>
  <div>Please confirm: the histogram is working correctly when you make
it the primary stanza instead of the semantically zoomed stanza? I
think I know what the problem is. If you can, please try patching
Bio/Graphics/Browser2/RenderPanels.pm with the enclosed patch file. I
am 90% sure it will fix the problem.&nbsp;</div>
  <div><br>
  </div>
  <div>Lincoln&nbsp;<br>
  <br>
  <div class="gmail_quote">On Fri, Jun 4, 2010 at 8:04 PM, Noah
Fahlgren <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:fahlgren@cgrb.oregonstate.edu">fahlgren@cgrb.oregonstate.edu</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I
have a database populated with sequenced small RNA and I am trying to
create a track that displays the individual sequences below 1,000 nts
and displays histogram density data with scrolling windows above. &nbsp;Here
is my track configuration:<br>
    <br>
[lib127]<br>
feature &nbsp; &nbsp; &nbsp; &nbsp; = smallRNA127<br>
database &nbsp; &nbsp; &nbsp; &nbsp;= smallRNA<br>
glyph &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = generic<br>
key &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = Col-0<br>
height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 4<br>
fgcolor &nbsp; &nbsp; &nbsp; &nbsp; = \&amp;multicolorDisplay<br>
bgcolor &nbsp; &nbsp; &nbsp; &nbsp; = \&amp;multicolorDisplay<br>
strand_arrow &nbsp; &nbsp;= 1<br>
description &nbsp; &nbsp; = 0<br>
label &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = sub {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;my $feature = shift;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;my $note = $feature-&gt;score." RPM";<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return $note;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
label_density &nbsp; = 50<br>
bump density &nbsp; &nbsp;= 1000<br>
category &nbsp; &nbsp; &nbsp; &nbsp;= Fahlgren et al. 2009<br>
citation &nbsp; &nbsp; &nbsp; &nbsp;= small RNA from wild type (Col-0) whole-aerial,
bolting plants (Fahlgren et al. 2009).<br>
    <br>
[lib127:1000]<br>
feature &nbsp; &nbsp; &nbsp; &nbsp; = smallRNA127_100<br>
database &nbsp; &nbsp; &nbsp; &nbsp;= histograms<br>
glyph &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = xyplot<br>
height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 50<br>
fgcolor &nbsp; &nbsp; &nbsp; &nbsp; = black<br>
bgcolor &nbsp; &nbsp; &nbsp; &nbsp; = black<br>
strand_arrow &nbsp; &nbsp;= 0<br>
description &nbsp; &nbsp; = 0<br>
label &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0<br>
group_on &nbsp; &nbsp; &nbsp; &nbsp;= display_name<br>
graph_type &nbsp; &nbsp; &nbsp;= boxes<br>
max_score &nbsp; &nbsp; &nbsp; = 100<br>
min_score &nbsp; &nbsp; &nbsp; = -100<br>
clip &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1<br>
part_color &nbsp; &nbsp; &nbsp;= \&amp;multicolorDisplay<br>
    <br>
When I zoom out to 1,000 nts or more I get individual xyplot graphs for
each datapoint instead of a continuous graph. If I make the xyplot
stanza the default feature then I get normal xyplots. Here is a sample
of what I loaded into our Bio::DB::SeqFeature MySQL database:<br>
    <br>
Individual small RNA:<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127 &nbsp; &nbsp;75 &nbsp; &nbsp;98 &nbsp; &nbsp;1.52 &nbsp; &nbsp;- &nbsp; &nbsp;. &nbsp;
&nbsp;ID=ASRP1672607;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127 &nbsp; &nbsp;154 &nbsp; &nbsp;177 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;ID=ASRP782716;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127 &nbsp; &nbsp;170 &nbsp; &nbsp;192 &nbsp; &nbsp;4.56 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;ID=ASRP331607;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127 &nbsp; &nbsp;171 &nbsp; &nbsp;194 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;ID=ASRP7739156;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127 &nbsp; &nbsp;543 &nbsp; &nbsp;566 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;ID=ASRP2341059;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127 &nbsp; &nbsp;594 &nbsp; &nbsp;617 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;ID=ASRP3944461;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127 &nbsp; &nbsp;752 &nbsp; &nbsp;775 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;ID=ASRP2891574;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127 &nbsp; &nbsp;772 &nbsp; &nbsp;795 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;ID=ASRP827103;Index=0<br>
    <br>
Histogram data:<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;110 &nbsp; &nbsp;130 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=24;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;130 &nbsp; &nbsp;150 &nbsp; &nbsp;7.6 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=23;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;150 &nbsp; &nbsp;170 &nbsp; &nbsp;7.6 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=23;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;170 &nbsp; &nbsp;190 &nbsp; &nbsp;7.6 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=23;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;190 &nbsp; &nbsp;210 &nbsp; &nbsp;7.6 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=23;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;210 &nbsp; &nbsp;230 &nbsp; &nbsp;6.08 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=23;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;510 &nbsp; &nbsp;530 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=24;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;530 &nbsp; &nbsp;550 &nbsp; &nbsp;1.52 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=24;Index=0<br>
Chr1 &nbsp; &nbsp;ASRP &nbsp; &nbsp;smallRNA127_100 &nbsp; &nbsp;550 &nbsp; &nbsp;570 &nbsp; &nbsp;3.04 &nbsp; &nbsp;+ &nbsp; &nbsp;. &nbsp;
&nbsp;Name=smallRNA127_100;SizeClass=24;Index=0<br>
    <br>
Am I missing something? &nbsp;I used to do this in Gbrowse 1.7, but maybe
something has changed.<br>
    <br>
Thanks,<br>
Noah<br>
    <br>
-- <br>
    <font color="#888888">Noah Fahlgren<br>
Graduate Research Assistant<br>
Center for Genome Research and Biocomputing<br>
3021 ALS Building<br>
Oregon State University<br>
Corvallis, OR 97331<br>
Phone: 541-737-3679<br>
Email: <a moz-do-not-send="true"
 href="mailto:fahlgren@cgrb.oregonstate.edu" target="_blank">fahlgren@cgrb.oregonstate.edu</a><br>
    <br>
    </font></blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Lincoln D. Stein<br>
Director, Informatics and Biocomputing Platform<br>
Ontario Institute for Cancer Research<br>
101 College St., Suite 800<br>
Toronto, ON, Canada M5G0A3<br>
416 673-8514<br>
Assistant: Renata Musa &lt;<a moz-do-not-send="true"
 href="mailto:Renata.Musa@oicr.on.ca">Renata.Musa@oicr.on.ca</a>&gt;<br>
  </div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Noah Fahlgren
Graduate Research Assistant
Center for Genome Research and Biocomputing
3021 ALS Building
Oregon State University
Corvallis, OR 97331
Phone: 541-737-3679
Email: <a class="moz-txt-link-abbreviated" href="mailto:fahlgren@cgrb.oregonstate.edu">fahlgren@cgrb.oregonstate.edu</a>
</pre>
</body>
</html>