Ace::Graphics::PanelPNG graphics of Ace::Sequence::Feature objects | |
Download |
Ace::Graphics::Panel Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Lincoln Stein
- Publisher web site:
- http://search.cpan.org/~lds/Crypt-CBC-2.29/CBC.pm
Ace::Graphics::Panel Tags
Ace::Graphics::Panel Description
PNG graphics of Ace::Sequence::Feature objects Ace::Graphics::Panel is a Perl module with PNG graphics of Ace::Sequence::Feature objects.SYNOPSIS use Ace::Sequence; use Ace::Graphics::Panel; my $db = Ace->connect(-host=>'brie2.cshl.org',-port=>2005) or die; my $cosmid = Ace::Sequence->new(-seq=>'Y16B4A', -db=>$db,-start=>-15000,-end=>15000) or die; my @transcripts = $cosmid->transcripts; my $panel = Ace::Graphics::Panel->new( -segment => $cosmid, -width => 800 ); $panel->add_track(arrow => $cosmid, -bump => 0, -tick=>2); $panel->add_track(transcript => @transcripts, -fillcolor => 'wheat', -fgcolor => 'black', -key => 'Curated Genes', -bump => +1, -height => 10, -label => 1); my $boxes = $panel->boxes; print $panel->png;The Ace::Graphics::Panel class provides drawing and formatting services for Ace::Sequence::Feature objects or Das::Segment::Feature objects.Typically you will begin by creating a new Ace::Graphics::Panel object, passing it the width of the visual display and the length of the segment.You will then call add_track() one or more times to add sets of related features to the picture. When you have added all the features you desire, you may call png() to convert the image into a PNG-format image, or boxes() to return coordinate information that can be used to create an imagemap.Note that this modules depends on GD. Requirements: · Perl
Ace::Graphics::Panel Related Software