Bio::Graphics::Panel 1.5.2_005 RCb
Sponsored Links
Bio::Graphics::Panel 1.5.2_005 RCb Ranking & Summary
File size:
5.7 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1055
Date added:
2006-12-06
Publisher:
Lincoln Stein
Bio::Graphics::Panel 1.5.2_005 RCb description
Bio::Graphics::Panel is a Perl module to generate GD images of Bio::Seq objects.
SYNOPSIS
# This script parses a GenBank or EMBL file named on the command
# line and produces a PNG rendering of it. Call it like this:
# render.pl my_file.embl | display -
use strict;
use Bio::Graphics;
use Bio::SeqIO;
my $file = shift or die "provide a sequence file as the argument";
my $io = Bio::SeqIO->new(-file=>$file) or die "could not create Bio::SeqIO";
my $seq = $io->next_seq or die "could not find a sequence in the file";
my @features = $seq->all_SeqFeatures;
# sort features by their primary tags
my %sorted_features;
for my $f (@features) {
my $tag = $f->primary_tag;
push @{$sorted_features{$tag}},$f;
}
my $panel = Bio::Graphics::Panel->new(
-length => $seq->length,
-key_style => between,
-width => 800,
-pad_left => 10,
-pad_right => 10,
);
$panel->add_track( arrow => Bio::SeqFeature::Generic->new(-start=>1,
-end=>$seq->length),
-bump => 0,
-double=>1,
-tick => 2);
$panel->add_track(generic => Bio::SeqFeature::Generic->new(-start=>1,
-end=>$seq->length),
-glyph => generic,
-bgcolor => blue,
-label => 1,
);
# general case
my @colors = qw(cyan orange blue purple green chartreuse magenta yellow aqua);
my $idx = 0;
for my $tag (sort keys %sorted_features) {
my $features = $sorted_features{$tag};
$panel->add_track($features,
-glyph => generic,
-bgcolor => $colors[$idx++ % @colors],
-fgcolor => black,
-font2color => red,
-key => "${tag}s",
-bump => +1,
-height => 8,
-label => 1,
-description => 1,
);
}
print $panel->png;
$panel->finished;
exit 0;
The Bio::Graphics::Panel class provides drawing and formatting services for any object that implements the Bio::SeqFeatureI interface, including Ace::Sequence::Feature and Das::Segment::Feature objects. It can be used to draw sequence annotations, physical (contig) maps, or any other type of map in which a set of discrete ranges need to be laid out on the number line.
The module supports a drawing style in which each type of feature occupies a discrete "track" that spans the width of the display. Each track will have its own distinctive "glyph", a configurable graphical representation of the feature.
The module also supports a more flexible style in which several different feature types and their associated glyphs can occupy the same track. The choice of glyph is under run-time control.
Semantic zooming (for instance, changing the type of glyph depending on the density of features) is supported by a callback system for configuration variables. The module has built-in support for Bio::Das stylesheets, and stylesheet-driven configuration can be intermixed with semantic zooming, if desired.
You can add a key to the generated image using either of two key styles. One style places the key captions at the top of each track. The other style generates a graphical key at the bottom of the image.
Note that this module depends on GD. The optional SVG output depends on GD::SVG and SVG.
SYNOPSIS
# This script parses a GenBank or EMBL file named on the command
# line and produces a PNG rendering of it. Call it like this:
# render.pl my_file.embl | display -
use strict;
use Bio::Graphics;
use Bio::SeqIO;
my $file = shift or die "provide a sequence file as the argument";
my $io = Bio::SeqIO->new(-file=>$file) or die "could not create Bio::SeqIO";
my $seq = $io->next_seq or die "could not find a sequence in the file";
my @features = $seq->all_SeqFeatures;
# sort features by their primary tags
my %sorted_features;
for my $f (@features) {
my $tag = $f->primary_tag;
push @{$sorted_features{$tag}},$f;
}
my $panel = Bio::Graphics::Panel->new(
-length => $seq->length,
-key_style => between,
-width => 800,
-pad_left => 10,
-pad_right => 10,
);
$panel->add_track( arrow => Bio::SeqFeature::Generic->new(-start=>1,
-end=>$seq->length),
-bump => 0,
-double=>1,
-tick => 2);
$panel->add_track(generic => Bio::SeqFeature::Generic->new(-start=>1,
-end=>$seq->length),
-glyph => generic,
-bgcolor => blue,
-label => 1,
);
# general case
my @colors = qw(cyan orange blue purple green chartreuse magenta yellow aqua);
my $idx = 0;
for my $tag (sort keys %sorted_features) {
my $features = $sorted_features{$tag};
$panel->add_track($features,
-glyph => generic,
-bgcolor => $colors[$idx++ % @colors],
-fgcolor => black,
-font2color => red,
-key => "${tag}s",
-bump => +1,
-height => 8,
-label => 1,
-description => 1,
);
}
print $panel->png;
$panel->finished;
exit 0;
The Bio::Graphics::Panel class provides drawing and formatting services for any object that implements the Bio::SeqFeatureI interface, including Ace::Sequence::Feature and Das::Segment::Feature objects. It can be used to draw sequence annotations, physical (contig) maps, or any other type of map in which a set of discrete ranges need to be laid out on the number line.
The module supports a drawing style in which each type of feature occupies a discrete "track" that spans the width of the display. Each track will have its own distinctive "glyph", a configurable graphical representation of the feature.
The module also supports a more flexible style in which several different feature types and their associated glyphs can occupy the same track. The choice of glyph is under run-time control.
Semantic zooming (for instance, changing the type of glyph depending on the density of features) is supported by a callback system for configuration variables. The module has built-in support for Bio::Das stylesheets, and stylesheet-driven configuration can be intermixed with semantic zooming, if desired.
You can add a key to the generated image using either of two key styles. One style places the key captions at the top of each track. The other style generates a graphical key at the bottom of the image.
Note that this module depends on GD. The optional SVG output depends on GD::SVG and SVG.
Bio::Graphics::Panel 1.5.2_005 RCb Screenshot
Advertisements
Bio::Graphics::Panel 1.5.2_005 RCb Keywords
RCb
Panel 1.5.2
GD
005 RCb
SVG
SeqIO
to generate
Perl module
features
module
track
005
1
1.5.2
Bio::Graphics::Panel 1.5.2_005 RCb
BioGraphicsPanel
Bookmark Bio::Graphics::Panel 1.5.2_005 RCb
Bio::Graphics::Panel 1.5.2_005 RCb Copyright
WareSeeker periodically updates pricing and software information of Bio::Graphics::Panel 1.5.2_005 RCb full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Bio::Graphics::Panel 1.5.2_005 RCb Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
features free online
module master
lunar module
water features
module allows users
features winning numbers
modules
features naperville
features that make
module 4
ignition module
focus features
tracker
high power red laser diode modules
features of ps3
what are the main features of a tornado
module 1
perl modules
Related Software
Bio::Graphics::Feature is a simple feature object for use with Bio::Graphics::Panel. Free Download
Bio::Graphics::FeatureFile is a set of Bio::Graphics features, stored in a file. Free Download
Bio::Tree::DistanceFactory is a Perl module to construct a tree using distance based methods. Free Download
Bio::Graphics::Glyph::cds module contains the cds glyph. Free Download
Bio::Graphics::Glyph::minmax is the minmax glyph. Free Download
Bio::Tools::Run::JavaRunner is a Perl module that can run java programs. Free Download
Bio::Graphics::Glyph::alignment is the "alignment" glyph. Free Download
Bio::Phylo::Manual is a Perl module that contains a Bio::Phylo v.0.14 user guide. Free Download
Latest Software
Popular Software
Favourite Software