Angie, is there any reason to call transparent()? The other tracks render their background in a solid color.<br><br>Lincoln<br><br><div class="gmail_quote">On Fri, May 29, 2009 at 3:56 PM, Angie Hinrichs <span dir="ltr">&lt;<a href="mailto:angie@soe.ucsc.edu">angie@soe.ucsc.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;">Mark, Do you see any error_log warnings like &quot;ucsc_glyph: colors will<br>
be out of sync ($i --&gt; $index)!&quot; ?<br>
<br>
Wherever the bad interaction is taking place, it is definitely an<br>
alpha-channel problem.  To construct the GD::Image using the colormap<br>
and pixelmap returned by the UCSC C code,<br>
Bio/Graphics/Glyph/<a href="http://ucsc_glyph.pm" target="_blank">ucsc_glyph.pm</a> uses these calls:<br>
<br>
  my $im = GD::Image-&gt;new($width, $height);<br>
  $im-&gt;transparent( &lt;UCSC colormap&#39;s white index&gt; );<br>
<br>
... loop on UCSC colormap calls $im-&gt;colorAllocate(),<br>
    ** hoping that calling $im-&gt;colorAllocate() in the same order<br>
       results in same colormap indices<br>
<br>
... loop on UCSC pixelmap calls $im-&gt;setPixel()<br>
<br>
** Here is where something could go wrong.  It looks like I should<br>
call $im-&gt;transparent *after* the call to $im-&gt;colorAllocate() for<br>
white, making sure that I pass $im&#39;s actual white index to<br>
$im-&gt;transparent.  However, when I call transparent after<br>
colorAllocate, the white pixels are shaded light gray instead of being<br>
transparent, even in the default display.  Calling $im-&gt;transparent<br>
first was just a hack that worked, and then I forgot about it.  I will<br>
try updating GD too, to see if that makes any difference.<br>
<br>
FWIW I am constructing the GD::Image one color and pixel at a time<br>
because when I used GD::Image-&gt;newFromGdData(), the image was created<br>
OK but when I returned the new $im from a sub{}, perl crashed with a<br>
&#39;glibc detected double free or corruption&#39;.  Does that ring a bell for<br>
anybody?<br>
<font color="#888888"><br>
Angie<br>
</font><div><div></div><div class="h5"><br>
On Fri, 29 May 2009, Todd W. Harris wrote:<br>
<br>
&gt; Mark -<br>
&gt;<br>
&gt; Try upgrading your GD::SVG to the most current version on CPAN.<br>
&gt;<br>
&gt; Todd<br>
&gt;<br>
&gt;<br>
&gt; On May 29, 2009, at 9:42 AM, mark meyer wrote:<br>
&gt;<br>
&gt; &gt; We use the GD::SVG and was never able to get the inkscape (pdf generation)<br>
&gt; &gt; operational, if that helps any.<br>
&gt; &gt;<br>
&gt; &gt; On Fri, May 29, 2009 at 9:52 AM, Scott Cain &lt;<a href="mailto:scott@scottcain.net">scott@scottcain.net</a>&gt; wrote:<br>
&gt; &gt; Hi all,<br>
&gt; &gt;<br>
&gt; &gt; Could this be a bad interaction between the plug in and GD::SVG or<br>
&gt; &gt; inkscape (depending on what sort of hi res image you are getting)?<br>
&gt; &gt; For example, I think that GD::SVG has a hard time with alpha channels.<br>
&gt; &gt;<br>
&gt; &gt; Scott<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Fri, May 29, 2009 at 10:31 AM, mark meyer &lt;<a href="mailto:mmeyerposting@gmail.com">mmeyerposting@gmail.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; Hi Angie,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Bill is out of the office today, but I can try to answer your questions.<br>
&gt; &gt; &gt; Attached are the two screen shots, one is what the plugin looks like in<br>
&gt; &gt; &gt; the<br>
&gt; &gt; &gt; gbrowse, just fine as it looks in UCSC.  The second is what happens when<br>
&gt; &gt; &gt; you<br>
&gt; &gt; &gt; click on high-res image.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; We are running gbrowse v1.69.  The plugin code was implemented and<br>
&gt; &gt; &gt; downloaded about 1 month ago, just recently ran into this issue since we<br>
&gt; &gt; &gt; are<br>
&gt; &gt; &gt; trying to make some publication figures from our Gbrowse data.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I can access conf files, etc. if you need to see them and try to do my<br>
&gt; &gt; &gt; best<br>
&gt; &gt; &gt; to answer questions, but I may not be able to answer very detailed<br>
&gt; &gt; &gt; questions<br>
&gt; &gt; &gt; in Bill&#39;s absence since he has been the one configuring this.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks for checking into this for us,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Mark<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Thu, May 28, 2009 at 5:29 PM, Angie Hinrichs &lt;<a href="mailto:angie@soe.ucsc.edu">angie@soe.ucsc.edu</a>&gt;<br>
&gt; &gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Dave - yes, that sounds likely.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Bill, what version of GBrowse are you running?  How recently did you<br>
&gt; &gt; &gt; &gt; grab the plugin code?  I didn&#39;t get the screenshot attachment so if<br>
&gt; &gt; &gt; &gt; you wouldn&#39;t mind sending that to me, that would be helpful.  If your<br>
&gt; &gt; &gt; &gt; GBrowse is on a public server, can you send the URL?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Angie<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Thu, 28 May 2009, Dave Clements, GMOD Help Desk wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Hi Bill,<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I have no particular insight on why this is happening.  My guess is<br>
&gt; &gt; &gt; &gt; &gt; that it is due some obscure interaction between the UCSC plugin and<br>
&gt; &gt; &gt; &gt; &gt; core GBrowse, but I don&#39;t actually know.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I&#39;ve CC&#39;d Angie at UCSC to see if she may have any insight.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Dave C.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; On Tue, May 26, 2009 at 2:25 PM, Bill Pulec &lt;<a href="mailto:wpulec@gmail.com">wpulec@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt; &gt; Hi All,<br>
&gt; &gt; &gt; &gt; &gt; &gt; I am attempting to view high-res images of conservation tracks but<br>
&gt; &gt; &gt; &gt; the<br>
&gt; &gt; &gt; &gt; &gt; &gt; background of these tracks in high-res is blue. This isn&#39;t the case<br>
&gt; &gt; &gt; &gt; &gt; &gt; when<br>
&gt; &gt; &gt; &gt; &gt; &gt; these tracks are displayed in gbrowse normally, it only happens when<br>
&gt; &gt; &gt; &gt; &gt; &gt; viewed<br>
&gt; &gt; &gt; &gt; &gt; &gt; as high-res. Also all the non-conservation tracks are fine in high<br>
&gt; &gt; &gt; &gt; &gt; &gt; res. Is<br>
&gt; &gt; &gt; &gt; &gt; &gt; there any reason why outputting these images in high-res would do<br>
&gt; &gt; &gt; &gt; &gt; &gt; this? Has<br>
&gt; &gt; &gt; &gt; &gt; &gt; anyone encountered other tracks doing this in high-res? Any insight<br>
&gt; &gt; &gt; &gt; &gt; &gt; would be<br>
&gt; &gt; &gt; &gt; &gt; &gt; appreciated. I have attached an example image of the track below.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; &gt; &gt; &gt; Bill<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Was this helpful?  Let us know at<br>
&gt; &gt; &gt; &gt; &gt; <a href="http://gmod.org/wiki/Help_Desk_Feedback" target="_blank">http://gmod.org/wiki/Help_Desk_Feedback</a><br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Learn more about GMOD at:<br>
&gt; &gt; &gt; &gt; &gt;   SMBE:<br>
&gt; &gt; &gt; &gt; &gt; <a href="http://ccg.biology.uiowa.edu/smbe/symposia.php?action=view&amp;sym_ID=27" target="_blank">http://ccg.biology.uiowa.edu/smbe/symposia.php?action=view&amp;sym_ID=27</a><br>
&gt; &gt; &gt; &gt; &gt;   Arthropod Genomics: <a href="http://www.k-state.edu/agc/symp2009/seminar.html" target="_blank">http://www.k-state.edu/agc/symp2009/seminar.html</a><br>
&gt; &gt; &gt; &gt; &gt;   AGA Next Gen Seq in Non-Models:<br>
&gt; &gt; &gt; &gt; &gt; <a href="http://www.regonline.com/Nextgeneration" target="_blank">http://www.regonline.com/Nextgeneration</a><br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; ------------------------------------------------------------------------------<br>
&gt; &gt; &gt; &gt; Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT<br>
&gt; &gt; &gt; &gt; is a gathering of tech-side developers &amp; brand creativity professionals.<br>
&gt; &gt; &gt; &gt; Meet<br>
&gt; &gt; &gt; &gt; the minds behind Google Creative Lab, Visual Complexity, Processing, &amp;<br>
&gt; &gt; &gt; &gt; iPhoneDevCamp as they present alongside digital heavyweights like<br>
&gt; &gt; &gt; &gt; Barbarian<br>
&gt; &gt; &gt; &gt; Group, R/GA, &amp; Big Spaceship. <a href="http://p.sf.net/sfu/creativitycat-com" target="_blank">http://p.sf.net/sfu/creativitycat-com</a><br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; Gmod-gbrowse mailing list<br>
&gt; &gt; &gt; &gt; <a href="mailto:Gmod-gbrowse@lists.sourceforge.net">Gmod-gbrowse@lists.sourceforge.net</a><br>
&gt; &gt; &gt; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse" target="_blank">https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; ------------------------------------------------------------------------<br>
&gt; &gt; Scott Cain, Ph. D.                                   scott at scottcain dot<br>
&gt; &gt; net<br>
&gt; &gt; GMOD Coordinator (<a href="http://gmod.org/" target="_blank">http://gmod.org/</a>)                     216-392-3087<br>
&gt; &gt; Ontario Institute for Cancer Research<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------------------------------------------------------<br>
&gt; &gt; Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT<br>
&gt; &gt; is a gathering of tech-side developers &amp; brand creativity professionals.<br>
&gt; &gt; Meet<br>
&gt; &gt; the minds behind Google Creative Lab, Visual Complexity, Processing, &amp;<br>
&gt; &gt; iPhoneDevCamp as they present alongside digital heavyweights like Barbarian<br>
&gt; &gt; Group, R/GA, &amp; Big Spaceship. <a href="http://p.sf.net/sfu/creativitycat-com" target="_blank">http://p.sf.net/sfu/creativitycat-com</a><br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Gmod-gbrowse mailing list<br>
&gt; &gt; <a href="mailto:Gmod-gbrowse@lists.sourceforge.net">Gmod-gbrowse@lists.sourceforge.net</a><br>
&gt; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse" target="_blank">https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse</a><br>
&gt;<br>
</div></div></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 href="mailto:Renata.Musa@oicr.on.ca">Renata.Musa@oicr.on.ca</a>&gt;<br>