[Biopython-dev] [Bug 2718] Bio.Graphics and output file formats (PDF, EPS, SVG, and bitmaps)

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Mar 20 15:49:52 UTC 2009


http://bugzilla.open-bio.org/show_bug.cgi?id=2718


biopython-bugzilla at maubp.freeserve.co.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #5 from biopython-bugzilla at maubp.freeserve.co.uk  2009-03-20 11:49 EST -------
(In reply to comment #0)
> (1) All the Bio.Graphics "write to file/handle" functions to accept any of the
> supported file formats (like Bio.Graphics.GenomeDiagram), which would require
> renderPM at run time for the bitmap formats (see Bug 2710).  They should share
> some code for mapping format names to ReportLab rendering module.  This would
> be easy to do without changing the existing mix of method names.

That should be working in CVS now.

> (2) Update the docstrings for the "write to file/handle" functions to make it
> clear they can accept a filename OR a handle (a result of the underlying
> reportlab renderer's drawToFile function's behaviour - see note below).

This was done in CVS some time ago (comment 2)

> (3) Standardise on the method naming (and perhaps deprecate the old methods). 
> Using "write" seems to be a sensible choice based on the current names used in
> Bio.Graphics.

This one is more difficult.  GenomeDiagram uses a two step system - draw then
write, where draw creates the ReportLab drawing object, and write saves it to a
file.  I'm going to leave this for another day...

Marking bug as fixed.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list