| Class | Bio::Graphics::Panel |
| In: |
lib/bio/graphics/panel.rb
|
| Parent: | Object |
The Bio::Graphics::Panel class describes the complete graph and contains all tracks. See Bio::Graphics documentation for explanation of interplay between different classes.
| clickable | [RW] | |
| display_range | [RW] | |
| display_start | [RW] | |
| display_stop | [RW] | |
| final_panel_destination | [RW] | |
| format | [RW] | |
| height | [RW] | |
| image_map | [RW] | |
| length | [RW] | |
| number_of_feature_rows | [RW] | |
| rescale_factor | [RW] | |
| tracks | [RW] | |
| vertical | [RW] | |
| width | [RW] |
Create a new Bio::Graphics::Panel object
g = Bio::Graphics::Panel.new(456)
The height of the image is calculated automatically depending on how many tracks and features it contains. The width of the image defaults to 800 pt but can be set manually by using the width argument to the opts hash:
g = Bio::Graphics::Panel.new(456, :width => 1200)
See also: Bio::Graphics::Panel::Track, Bio::Graphics::Panel::Track::Feature
Arguments:
| Returns: | Bio::Graphics::Panel object |
Adds a Bio::Graphics::Track container to this panel. A panel contains a logical grouping of features, e.g. (for sequence annotation:) genes, polymorphisms, ESTs, etc.
est_track = g.add_track('ESTs', :label => false, :glyph => :directed_generic)
gene_track = g.add_track('genes', :label => true)
Arguments:
| Returns: | Bio::Graphics::Track object that has just been created |