Hi,<br><br>I have fixed the protein glyph so that it automatically translates DNA into protein if it is run on top of a dna database. The same restrictions apply as to the cds glyph -- the phase of the feature&#39;s subparts need to be correctly defined, or you will get nonsense. At high power, the protein translation appears, just like the cds glyph (I did this by making protein a subclass of cds).<br>
<br>It is now in CPAN under Bio::Graphics version 1.81.<br><br>Lincoln<br><br><div class="gmail_quote">On Fri, Dec 19, 2008 at 11:57 AM, Scott Cain <span dir="ltr">&lt;<a href="mailto:cain.cshl@gmail.com">cain.cshl@gmail.com</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;">Hi Lincoln,<br>
<br>
Before you retire it, consider that people might be using it either<br>
with GBrowse as a protein viewer (like SGD does, though I don&#39;t know<br>
if they are using the protein glyph) or in some other application that<br>
uses Bio::Graphics in an application outside of GBrowse for displaying<br>
protein information. &nbsp;This protein glyph is actually pretty nice in<br>
that, when zoomed out, it behaves like the dna glyph and displays a kd<br>
plot, and zoomed in displays the residues.<br>
<font color="#888888"><br>
Scott<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Fri, Dec 19, 2008 at 11:45 AM, Lincoln Stein &lt;<a href="mailto:lincoln.stein@gmail.com">lincoln.stein@gmail.com</a>&gt; wrote:<br>
&gt; Oh gee, it looks like I should retire the protein glyph. It definitely isn&#39;t<br>
&gt; behaving the way I think it should, which is to do the translation itself<br>
&gt; based on the phase and dna sequence.<br>
&gt;<br>
&gt; The -draw_protein_target option is only supposed to work if you&#39;ve got a<br>
&gt; protein defined as the target which aligns to a dna source -- for example, a<br>
&gt; tblastn result.<br>
&gt;<br>
&gt; Lincoln<br>
&gt;<br>
&gt; On Wed, Dec 17, 2008 at 3:12 PM, Newton Vidal &lt;<a href="mailto:nwvidal@gmail.com">nwvidal@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi, Scott and Lincoln.<br>
&gt;&gt;<br>
&gt;&gt; I have another question, related to my problem, but arising another issue:<br>
&gt;&gt;<br>
&gt;&gt; I have configured two different glyphs, one as CDS and the other as<br>
&gt;&gt; protein. When I zoomed in the main Gbrowse screen, the CDS glyph is shown as<br>
&gt;&gt; protein sequence and the protein is shown as nucleotide sequence. Is this<br>
&gt;&gt; behavior expected? Why the CDS, that codes for a protein, but is composed of<br>
&gt;&gt; DNA is shown as protein and the protein glyph is not?<br>
&gt;&gt;<br>
&gt;&gt; Representative pictures are attached.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance.<br>
&gt;&gt;<br>
&gt;&gt; Newton.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Dec 16, 2008 at 8:52 PM, Dave Clements, GMOD Help Desk<br>
&gt;&gt; &lt;<a href="mailto:gmodhelp@googlemail.com">gmodhelp@googlemail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi Newton, Scott, Lincoln,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The draw_protein_target option of the segments glyph did not work as<br>
&gt;&gt;&gt; of October. &nbsp;I don&#39;t recall any recent problems (or success either)<br>
&gt;&gt;&gt; with the draw_target option of the transcript glyph, although it<br>
&gt;&gt;&gt; wouldn&#39;t surprise me if both options use the same code. &nbsp;(See<br>
&gt;&gt;&gt; <a href="http://thread.gmane.org/gmane.science.biology.gmod.gbrowse/808" target="_blank">http://thread.gmane.org/gmane.science.biology.gmod.gbrowse/808</a> for<br>
&gt;&gt;&gt; more on draw_protein_target problems).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I also loaded the GFF3 file for Tcruzi into a mysql database. &nbsp;I did<br>
&gt;&gt;&gt; not get any load errors (or Apache runtime errors), but nothing<br>
&gt;&gt;&gt; displays for me either. &nbsp;All landmarks are unrecognized. &nbsp;I tried<br>
&gt;&gt;&gt; playing around with the conf file but to no avail.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Dave C.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Was this helpful? &nbsp;Let us know at <a href="http://gmod.org/wiki/Help_Desk_Feedback" target="_blank">http://gmod.org/wiki/Help_Desk_Feedback</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, Dec 16, 2008 at 1:02 PM, Scott Cain &lt;<a href="mailto:cain.cshl@gmail.com">cain.cshl@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; Hi Lincoln and Newton,<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; I was under the impression that the draw_protein option was<br>
&gt;&gt;&gt; &gt; incompletely implemented, but if it works with other database<br>
&gt;&gt;&gt; &gt; adaptors, perhaps there is a bug in the Chado GBrowse adaptor. &nbsp;Have<br>
&gt;&gt;&gt; &gt; you tried the cds glyph, which should display residues when zoomed in<br>
&gt;&gt;&gt; &gt; far enough? &nbsp;If draw_protein doesn&#39;t work but the cds glyph does, it<br>
&gt;&gt;&gt; &gt; indicates a Bio::Graphics problem. &nbsp;If neither work, it is more likely<br>
&gt;&gt;&gt; &gt; a Chado adaptor or data problem.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; As for the T. cruzi problem--I don&#39;t see anything in the data that<br>
&gt;&gt;&gt; &gt; looks problematic. &nbsp;Where there any error messages while loading or in<br>
&gt;&gt;&gt; &gt; the apache error_log (with a preemptive note: error messages about<br>
&gt;&gt;&gt; &gt; Bio::Graphics::BrowserConfig don&#39;t mean anything)?<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Scott<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; On Tue, Dec 16, 2008 at 3:35 PM, Lincoln Stein<br>
&gt;&gt;&gt; &gt; &lt;<a href="mailto:lincoln.stein@gmail.com">lincoln.stein@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; Hi Newton,<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Have you tried passing the draw_protein option?<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &nbsp;[Polypeptide]<br>
&gt;&gt;&gt; &gt;&gt; &nbsp;feature = polypeptide<br>
&gt;&gt;&gt; &gt;&gt; &nbsp;glyph &nbsp; = transcript<br>
&gt;&gt;&gt; &gt;&gt; &nbsp;draw_protein = 1<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Also check out the &quot;protein&quot; and &quot;translation&quot; glyphs.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; The T. cruzi problem sounds like a chado issue -- I will defer to<br>
&gt;&gt;&gt; &gt;&gt; Scott<br>
&gt;&gt;&gt; &gt;&gt; and/or David on this.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Best,<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Lincoln<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; On Tue, Dec 16, 2008 at 2:01 PM, Newton Vidal &lt;<a href="mailto:nwvidal@gmail.com">nwvidal@gmail.com</a>&gt;<br>
&gt;&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Dear all,<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; I am starting to work with GMOD and Chado, and I have uploaded<br>
&gt;&gt;&gt; &gt;&gt;&gt; genbank<br>
&gt;&gt;&gt; &gt;&gt;&gt; files from five different protozoan genomes, using bp_genbank2gff3.pl<br>
&gt;&gt;&gt; &gt;&gt;&gt; and<br>
&gt;&gt;&gt; &gt;&gt;&gt; gmod_bulk_load_gff3.pl scripts in our local chado v. 1.0 database.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; I have run into two major problems when visualizing data with Gbrowse<br>
&gt;&gt;&gt; &gt;&gt;&gt; v.<br>
&gt;&gt;&gt; &gt;&gt;&gt; 1.69:<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; · &nbsp; &nbsp; &nbsp; &nbsp;The polypeptide feature shows nucleic acid sequence instead<br>
&gt;&gt;&gt; &gt;&gt;&gt; of<br>
&gt;&gt;&gt; &gt;&gt;&gt; amino acid, when clicked;<br>
&gt;&gt;&gt; &gt;&gt;&gt; · &nbsp; &nbsp; &nbsp; &nbsp;For four of the genomes (Leishmania sp. and Trypanosoma<br>
&gt;&gt;&gt; &gt;&gt;&gt; brucei)<br>
&gt;&gt;&gt; &gt;&gt;&gt; the others features work fine, but for T. cruzi, no data is provided<br>
&gt;&gt;&gt; &gt;&gt;&gt; when I<br>
&gt;&gt;&gt; &gt;&gt;&gt; click its features.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; I have edited chado.conf file to work with my database and added the<br>
&gt;&gt;&gt; &gt;&gt;&gt; lines<br>
&gt;&gt;&gt; &gt;&gt;&gt; below:<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; [Polypeptide]<br>
&gt;&gt;&gt; &gt;&gt;&gt; feature &nbsp; &nbsp; &nbsp;= polypeptide<br>
&gt;&gt;&gt; &gt;&gt;&gt; glyph &nbsp; &nbsp; &nbsp; &nbsp;= transcript<br>
&gt;&gt;&gt; &gt;&gt;&gt; height &nbsp; &nbsp; &nbsp; = 10<br>
&gt;&gt;&gt; &gt;&gt;&gt; key &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= Polypeptide<br>
&gt;&gt;&gt; &gt;&gt;&gt; bgcolor &nbsp; &nbsp; &nbsp;= green<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; I&#39;m sending attached T. brucei and T. cruzi&#39;s GFF files and gbrowse<br>
&gt;&gt;&gt; &gt;&gt;&gt; conf<br>
&gt;&gt;&gt; &gt;&gt;&gt; file. I have a 80MB dump file and I can share it if needed.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Thanks in advance,<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Newton Vidal<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; Lincoln D. Stein<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Ontario Institute for Cancer Research<br>
&gt;&gt;&gt; &gt;&gt; 101 College St., Suite 800<br>
&gt;&gt;&gt; &gt;&gt; Toronto, ON, Canada M5G0A3<br>
&gt;&gt;&gt; &gt;&gt; 416 673-8514<br>
&gt;&gt;&gt; &gt;&gt; Assistant: Renata Musa &lt;<a href="mailto:Renata.Musa@oicr.on.ca">Renata.Musa@oicr.on.ca</a>&gt;<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;<br>
&gt;&gt;&gt; &gt; ------------------------------------------------------------------------<br>
&gt;&gt;&gt; &gt; Scott Cain, Ph. D. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scott at scottcain<br>
&gt;&gt;&gt; &gt; dot net<br>
&gt;&gt;&gt; &gt; GMOD Coordinator (<a href="http://gmod.org/" target="_blank">http://gmod.org/</a>) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 216-392-3087<br>
&gt;&gt;&gt; &gt; Ontario Institute for Cancer Research<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Lincoln D. Stein<br>
&gt;<br>
&gt; Ontario Institute for Cancer Research<br>
&gt; 101 College St., Suite 800<br>
&gt; Toronto, ON, Canada M5G0A3<br>
&gt; 416 673-8514<br>
&gt; Assistant: Renata Musa &lt;<a href="mailto:Renata.Musa@oicr.on.ca">Renata.Musa@oicr.on.ca</a>&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="Wj3C7c">------------------------------------------------------------------------<br>
Scott Cain, Ph. D. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scott at scottcain dot net<br>
GMOD Coordinator (<a href="http://gmod.org/" target="_blank">http://gmod.org/</a>) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 216-392-3087<br>
Ontario Institute for Cancer Research<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln D. Stein<br><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>