[Biopython] graphics library suggestions?

Peter Cock p.j.a.cock at googlemail.com
Thu Apr 30 14:34:52 UTC 2015


On Thu, Apr 30, 2015 at 3:15 PM, Katie Edmonds <betainverse at gmail.com> wrote:
> Hi,
>
> I want to write a script that reads a list of genes from a table, including
> their start and endpoint on the chromosome, and generates vector graphics
> arrows on a line, with lengths and positions to scale for their size and
> location in the genome, colored by some value given in the table. Does
> anyone have any suggestions for a useful library for creating nice vector
> graphics arrows?
>
> Here's an example of what I'm talking about:
> https://github.com/betainverse/other/blob/master/gene_arrows.pdf
>
> Alternatively, is there already a good tool that does what I want?
>
> Thanks,
> Katie

Biopython has GenomeDiagram (using ReportLab internally
to make PDF / SVG / PNG etc) which can do that. We have
various sigils (ways of drawing features), BIGARROW is
probably closest to the example you linked to.

See: http://biopython.org/DIST/docs/tutorial/Tutorial.html

Peter


More information about the Biopython mailing list