You say the original script does nothing. I suppose this means no file is generated at all. Which would mean the line wth "open my $blast..." is never executed. Otherwise there would at least be an empty file even if the png generation failed

You can make sure of this if you just insert a line 'print "was here\n"; in that last while loop and execute the script

Now you have 3 while loops inside each other. With the same method (inserting print statements) you can find out which is the one that never gets executed. Lets assume it is really the innermost loop that never gets executed. Put the following lines just before the start of the loop:

use Data::Dumper; print Dumper(\$hit, $hit->next_hsp);

Execute and check what you get and whether it makes sense. Compare with the data from the other script where you got one picture out (after you added a similar Dumper line). If you find the discrepancy, check where it came from. You'll find the bug in no time


In reply to Re: BioPerl Graphics problem by jethro
in thread BioPerl Graphics problem by Tjuh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.