Package Bio :: Package Graphics :: Module KGML_vis
[hide private]
[frames] | no frames]

Module KGML_vis

source code

Classes and functions to visualise a KGML Pathway Map.

The KGML definition is as of release KGML v0.7.1 (http://www.kegg.jp/kegg/xml/docs/)

Classes:

Classes [hide private]
  KGMLCanvas
Reportlab Canvas-based representation of a KGML pathway map.
Functions [hide private]
 
darken(color, factor=0.7)
Return darkened color as a ReportLab RGB color.
source code
 
color_to_reportlab(color)
Return the passed color in Reportlab Color format.
source code
 
get_temp_imagefilename(url)
Return filename of temporary file containing downloaded image.
source code
Variables [hide private]
  __package__ = 'Bio.Graphics'
Function Details [hide private]

darken(color, factor=0.7)

source code 

Return darkened color as a ReportLab RGB color.

Take a passed color and returns a Reportlab color that is darker by the factor indicated in the parameter.

color_to_reportlab(color)

source code 

Return the passed color in Reportlab Color format.

We allow colors to be specified as hex values, tuples, or Reportlab Color objects, and with or without an alpha channel. This function acts as a Rosetta stone for conversion of those formats to a Reportlab Color object, with alpha value.

Any other color specification is returned directly

get_temp_imagefilename(url)

source code 

Return filename of temporary file containing downloaded image.

Create a new temporary file to hold the image file at the passed URL and return the filename.