Bases: object
Base class for plotting a genomic region.
This class is designed to be sub-classed, so it really just a shell with some example methods filled in.
Methods
close_all() | Close all figures spawned by this class. |
example_panel(ax, feature) | A example panel that just prints the text of the feature. |
make_fig() | Figure constructor, called before self.plot() |
panels() | Method to be overriden by subclasses. |
plot(feature) | Spawns a new figure showing data for feature. |
Methods
__init__(genomic_signal_objs) | |
close_all() | Close all figures spawned by this class. |
example_panel(ax, feature) | A example panel that just prints the text of the feature. |
make_fig() | Figure constructor, called before self.plot() |
panels() | Method to be overriden by subclasses. |
plot(feature) | Spawns a new figure showing data for feature. |
Method to be overriden by subclasses.
This method should create Axes objects on self.fig and register which methods operate on which axes.
Each method’s signature should be func(self, ax, feature), and it will take a pybedtools.Interval feature and plot it or something derived from it onto ax. It should return a pybedtools.Interval object, usually just the same one that was passed in.
Spawns a new figure showing data for feature.
Parameters: | feature – A pybedtools.Interval object |
---|
Using the pybedtools.Interval feature, creates figure specified in BaseMiniBrowser.make_fig() and plots data on panels according to self.panels().