[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
Tue Dec 23 13:14:06 UTC 2008


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





------- Comment #2 from biopython-bugzilla at maubp.freeserve.co.uk  2008-12-23 08:14 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.

In addition, I notice that Bio.Graphics.BasicChromosome,
Bio.Graphics.Comparative and Bio.Graphics.Distribution expect lower case
formats (currently just pdf and eps) while Bio.Graphics.GenomeDiagram expects
upper case.  We should be consistent, which for backwards compatibility would
mean accepting either case.

> (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).

I've updated the docstrings in CVS,

Bio/Graphics/BasicChromosome.py revision 1.3
Bio/Graphics/Comparative.py revision 1.2
Bio/Graphics/Distribution.py revision 1.3
Bio/Graphics/GenomeDiagram/Diagram.py revision 1.3


-- 
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