I know this reply is too late to help you, but for anyone wanting to do a negative scale, I think the following example should work. However, the coordinate system will continue to be positive, so you'll just have to convert your positions to positive values (ie. abs(minimum value on scale - feature pos) + 1). For example, the -63 relative to the TSS will be need to be converted to:
abs(-300 - - 63) + 1 = 238
The following code creates the feature and the panel:
my $full_length = Bio::SeqFeature::Generic->new( -start => 1, -end => 300 ); my $panel = Bio::Graphics::Panel->new( -length => $length, -width => 1000, -pad_left => 10, -pad_right => 10, );
This next statement adds the arrow track to the panel, the relative coords needs to be set to true and the relative coords offset is set to the minimum value you want represented on arrow track (in this example it is -300).
$panel->add_track($full_length, -glyph => 'arrow', -tick => 2, -fgcolor => 'black', -double => 1, -relative_coords => 1, -relative_coords_offset => -300 );
Hope that helps someone,
Lauren

In reply to Re: Bio::Graphics - Howto Enable Neg Start-End, Connector, Create Legend by lbragg
in thread Bio::Graphics - Howto Enable Neg Start-End, Connector, Create Legend by monkfan

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.