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, index) Returns the value at the base specified, or graph data in the base range 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 or list of tuples |
|
||
"" |
|
|
|||
centre Backwards compatible alias for center (DEPRECATED) |
|
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
|
Given an integer representing position on the sequence returns a float - the data value at the passed position. If a slice, returns graph data from the region as a list or (position, value) tuples. Slices with step are not supported. Returns the data value at the passed position
|
|
centreBackwards compatible alias for center (DEPRECATED)
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Apr 1 00:42:15 2011 | http://epydoc.sourceforge.net |