| 1 | package Bio::Graphics::Glyph::alignment; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | use base qw(Bio::Graphics::Glyph::graded_segments); | ||
| 6 | |||
| 7 | sub my_description { | ||
| 8 | return <<END; | ||
| 9 | This glyph is a synonym for the "graded_segments" glyph, and is used for | ||
| 10 | drawing features that consist of discontinuous segments. The | ||
| 11 | color intensity of each segment is proportional to the score. | ||
| 12 | END | ||
| 13 | } | ||
| 14 | sub my_options { | ||
| 15 | return { | ||
| 16 | max_score => [ | ||
| 17 | 'integer', | ||
| 18 | undef, | ||
| 19 | "Maximum value of the feature's \"score\" attribute."], | ||
| 20 | min_score => [ | ||
| 21 | 'integer', | ||
| 22 | undef, | ||
| 23 | "Minimum value of the feature's \"score\" attribute."], | ||
| 24 | vary_fg => [ | ||
| 25 | 'boolean', | ||
| 26 | undef, | ||
| 27 | "Vary the foreground color as well as the background."], | ||
| 28 | merge_parts => [ | ||
| 29 | 'boolean', | ||
| 30 | undef, | ||
| 31 | "At low magnifications, smooth small gaps to improve the visual display.", | ||
| 32 | "See this glyph's manual page for the gory details."], | ||
| 33 | max_gap => [ | ||
| 34 | 'integer', | ||
| 35 | undef, | ||
| 36 | 'Do not merge across gaps that exceed this threshold.'], | ||
| 37 | } | ||
| 38 | } | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |