Top level class for drawing chromosomes.
This class holds information about an organism and all of it's
chromosomes, and provides the top level object which could be used
for drawing a chromosome representation of an organism.
Chromosomes should be added and removed from the Organism via the
add and remove functions.
Methods
|
|
__init__
_draw_legend
_draw_title
draw
|
|
__init__
|
__init__ ( self, output_format='pdf' )
|
|
_draw_legend
|
_draw_legend (
self,
cur_drawing,
start_y,
width,
)
Draw a legend for the figure.
Subclasses should implement this to provide specialized legends.
|
|
_draw_title
|
_draw_title (
self,
cur_drawing,
title,
width,
height,
)
Write out the title of the organism figure.
|
|
draw
|
draw (
self,
output_file,
title,
)
Draw out the information for the Organism.
Arguments:
Exceptions
|
|
ValueError( "Invalid output format %s" % self.output_format )
|
|
|