<div dir="ltr">It seems like even when I set the track height, the heights and the lengths of the arrows (per base pair) are always changing depending on the lengths of the sequences and the number of tracks in the figure. Is there any way that I am missing to nail down these proportions? <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 10:34 AM, Peter Cock <span dir="ltr">&lt;<a href="mailto:p.j.a.cock@googlemail.com" target="_blank">p.j.a.cock@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Apr 30, 2015 at 3:15 PM, Katie Edmonds &lt;<a href="mailto:betainverse@gmail.com">betainverse@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I want to write a script that reads a list of genes from a table, including<br>
&gt; their start and endpoint on the chromosome, and generates vector graphics<br>
&gt; arrows on a line, with lengths and positions to scale for their size and<br>
&gt; location in the genome, colored by some value given in the table. Does<br>
&gt; anyone have any suggestions for a useful library for creating nice vector<br>
&gt; graphics arrows?<br>
&gt;<br>
&gt; Here&#39;s an example of what I&#39;m talking about:<br>
&gt; <a href="https://github.com/betainverse/other/blob/master/gene_arrows.pdf" target="_blank">https://github.com/betainverse/other/blob/master/gene_arrows.pdf</a><br>
&gt;<br>
&gt; Alternatively, is there already a good tool that does what I want?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Katie<br>
<br>
</div></div>Biopython has GenomeDiagram (using ReportLab internally<br>
to make PDF / SVG / PNG etc) which can do that. We have<br>
various sigils (ways of drawing features), BIGARROW is<br>
probably closest to the example you linked to.<br>
<br>
See: <a href="http://biopython.org/DIST/docs/tutorial/Tutorial.html" target="_blank">http://biopython.org/DIST/docs/tutorial/Tutorial.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Peter<br>
</font></span></blockquote></div><br></div>