| Trees | Indices | Help |
|---|
|
|
GraphData
Provides:
Methods:
o __init__(self, id=None, data=None, name=None, style='bar',
color=colors.lightgreen, altcolor=colors.darkseagreen)
Called on instantiation
o set_data(self, data) Load the object with data to be plotted
o get_data(self) Returns the data to be plotted as a list of
(position, value) tuples
o add_point(self, point) Add a single point to the data set
o quartiles(self) Returns a tuple of the data quartiles
o range(self) Returns a tuple of the base range covered by the graph
data
o mean(self) Returns a float of the mean data point value
o stdev(self) Returns the sample standard deviation of the data values
o __len__(self) Returns the length of sequence covered by the data
o __getitem__(self, key) Returns the value at the base specified
o __getslice__(self, low, high) Returns graph data in the base range
specified
o __str__(self) Returns a formatted string describing the graph data
Attributes:
o id Unique identifier for the data
o data Dictionary of describing the data, keyed by position
o name String describing the data
o style String ('bar', 'heat', 'line') describing how to draw the data
o poscolor colors.Color for drawing high (some styles) or all
values
o negcolor colors.Color for drawing low values (some styles)
o linewidth Int, thickness to draw the line in 'line' styles
|
|||
|
|||
|
|||
|
|||
| [(int, float), (int, float), ...] |
|
||
|
|||
| (float, float, float, float, float) |
|
||
| (int, int) |
|
||
| Float |
|
||
| Float |
|
||
| Int |
|
||
| Float |
|
||
| [(int, float), (int, float), ...] |
|
||
| "" |
|
||
|
|||
|
centre Backwards compatible alias for center (OBSOLETE) |
|||
|
|||
o id Unique ID for the graph
o data List of (position, value) tuples
o name String describing the graph
o style String describing the presentation style ('bar', 'line',
'heat')
o color colors.Color describing the color to draw all or the
'high' (some styles) values (overridden by backwards
compatible argument with UK spelling, colour).
o altcolor colors.Color describing the color to draw the 'low'
values (some styles only) (overridden by backwards
compatible argument with UK spelling, colour).
o center Value at which x-axis crosses y-axis (overridden by
backwards comparible argument with UK spelling, centre).
|
o data List of (position, value) tuples Add data with a list of (position, value) tuples |
o point (position, value) tuple Add a single point to the set of data |
Returns the range of the data, i.e. its start and end points on the genome as a (start, end) tuple
|
o key Integer representing position on the sequence Returns the data value at the passed position
|
o low The start point for the data range o high The end point for the data range Returns a slice of the graph data from the passed low to the passed high value as a list of (position, value) tuples
|
|
|||
centreBackwards compatible alias for center (OBSOLETE)
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sun May 3 17:14:20 2009 | http://epydoc.sourceforge.net |