bio graphics feature 1.4
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2728
Bio::Graphics::Feature 1.4
Bio::Graphics::Feature is a simple feature object for use with Bio::Graphics::Panel. more>>
Bio::Graphics::Feature is a simple feature object for use with Bio::Graphics::Panel.
SYNOPSIS
use Bio::Graphics::Feature;
# create a simple feature with no internal structure
$f = Bio::Graphics::Feature->new(-start => 1000,
-stop => 2000,
-type => transcript,
-name => alpha-1 antitrypsin,
-desc => an enzyme inhibitor,
);
# create a feature composed of multiple segments, all of type "similarity"
$f = Bio::Graphics::Feature->new(-segments => [[1000,1100],[1500,1550],[1800,2000]],
-name => ABC-3,
-type => gapped_alignment,
-subtype => similarity);
# build up a gene exon by exon
$e1 = Bio::Graphics::Feature->new(-start=>1,-stop=>100,-type=>exon);
$e2 = Bio::Graphics::Feature->new(-start=>150,-stop=>200,-type=>exon);
$e3 = Bio::Graphics::Feature->new(-start=>300,-stop=>500,-type=>exon);
$f = Bio::Graphics::Feature->new(-segments=>[$e1,$e2,$e3],-type=>gene);
This is a simple Bio::SeqFeatureI-compliant object that is compatible with Bio::Graphics::Panel. With it you can create lightweight feature objects for drawing.
<<lessSYNOPSIS
use Bio::Graphics::Feature;
# create a simple feature with no internal structure
$f = Bio::Graphics::Feature->new(-start => 1000,
-stop => 2000,
-type => transcript,
-name => alpha-1 antitrypsin,
-desc => an enzyme inhibitor,
);
# create a feature composed of multiple segments, all of type "similarity"
$f = Bio::Graphics::Feature->new(-segments => [[1000,1100],[1500,1550],[1800,2000]],
-name => ABC-3,
-type => gapped_alignment,
-subtype => similarity);
# build up a gene exon by exon
$e1 = Bio::Graphics::Feature->new(-start=>1,-stop=>100,-type=>exon);
$e2 = Bio::Graphics::Feature->new(-start=>150,-stop=>200,-type=>exon);
$e3 = Bio::Graphics::Feature->new(-start=>300,-stop=>500,-type=>exon);
$f = Bio::Graphics::Feature->new(-segments=>[$e1,$e2,$e3],-type=>gene);
This is a simple Bio::SeqFeatureI-compliant object that is compatible with Bio::Graphics::Panel. With it you can create lightweight feature objects for drawing.
Download (4.7MB)
Added: 2006-10-21 License: Perl Artistic License Price:
1098 downloads
Bio::Graphics::FeatureFile 1.4
Bio::Graphics::FeatureFile is a set of Bio::Graphics features, stored in a file. more>>
Bio::Graphics::FeatureFile is a set of Bio::Graphics features, stored in a file.
SYNOPSIS
use Bio::Graphics::FeatureFile;
my $data = Bio::Graphics::FeatureFile->new(-file => features.txt);
# create a new panel and render contents of the file onto it
my $panel = $data->new_panel;
my $tracks_rendered = $data->render($panel);
# or do it all in one step
my ($tracks_rendered,$panel) = $data->render;
# for more control, render tracks individually
my @feature_types = $data->types;
for my $type (@feature_types) {
my $features = $data->features($type);
my %options = $data->style($type);
$panel->add_track($features,%options); # assuming we have a Bio::Graphics::Panel
}
# get individual settings
my $est_fg_color = $data->setting(EST => fgcolor);
# or create the FeatureFile by hand
# add a type
$data->add_type(EST => {fgcolor=>blue,height=>12});
# add a feature
my $feature = Bio::Graphics::Feature->new(
# params
); # or some other SeqI
$data->add_feature($feature=>EST);
The Bio::Graphics::FeatureFile module reads and parses files that describe sequence features and their renderings. It accepts both GFF format and a more human-friendly file format described below. Once a FeatureFile object has been initialized, you can interrogate it for its consistuent features and their settings, or render the entire file onto a Bio::Graphics::Panel.
This moduel is a precursor of Jason Stajichs Bio::Annotation::Collection class, and fulfills a similar function of storing a collection of sequence features. However, it also stores rendering information about the features, and does not currently follow the CollectionI interface.
<<lessSYNOPSIS
use Bio::Graphics::FeatureFile;
my $data = Bio::Graphics::FeatureFile->new(-file => features.txt);
# create a new panel and render contents of the file onto it
my $panel = $data->new_panel;
my $tracks_rendered = $data->render($panel);
# or do it all in one step
my ($tracks_rendered,$panel) = $data->render;
# for more control, render tracks individually
my @feature_types = $data->types;
for my $type (@feature_types) {
my $features = $data->features($type);
my %options = $data->style($type);
$panel->add_track($features,%options); # assuming we have a Bio::Graphics::Panel
}
# get individual settings
my $est_fg_color = $data->setting(EST => fgcolor);
# or create the FeatureFile by hand
# add a type
$data->add_type(EST => {fgcolor=>blue,height=>12});
# add a feature
my $feature = Bio::Graphics::Feature->new(
# params
); # or some other SeqI
$data->add_feature($feature=>EST);
The Bio::Graphics::FeatureFile module reads and parses files that describe sequence features and their renderings. It accepts both GFF format and a more human-friendly file format described below. Once a FeatureFile object has been initialized, you can interrogate it for its consistuent features and their settings, or render the entire file onto a Bio::Graphics::Panel.
This moduel is a precursor of Jason Stajichs Bio::Annotation::Collection class, and fulfills a similar function of storing a collection of sequence features. However, it also stores rendering information about the features, and does not currently follow the CollectionI interface.
Download (4.7MB)
Added: 2006-06-12 License: Perl Artistic License Price:
1229 downloads
Bio::DB::GFF::Feature 1.4
Bio::DB::GFF::Feature is a relative segment identified by a feature type. more>>
Bio::DB::GFF::Feature is a relative segment identified by a feature type.
Bio::DB::GFF::Feature is a stretch of sequence that corresponding to a single annotation in a GFF database. It inherits from Bio::DB::GFF::RelSegment, and so has all the support for relative addressing of this class and its ancestors. It also inherits from Bio::SeqFeatureI and so has the familiar start(), stop(), primary_tag() and location() methods (it implements Bio::LocationI too, if needed).
Bio::DB::GFF::Feature adds new methods to retrieve the annotations type, group, and other GFF attributes. Annotation types are represented by Bio::DB::GFF::Typename objects, a simple class that has two methods called method() and source(). These correspond to the method and source fields of a GFF file.
Annotation groups serve the dual purpose of giving the annotation a human-readable name, and providing higher-order groupings of subfeatures into features. The groups returned by this module are objects of the Bio::DB::GFF::Featname class.
Bio::DB::GFF::Feature inherits from and implements the abstract methods of Bio::SeqFeatureI, allowing it to interoperate with other Bioperl modules.
Generally, you will not create or manipulate Bio::DB::GFF::Feature objects directly, but use those that are returned by the Bio::DB::GFF::RelSegment->features() method.
Important note about start() vs end()
If features are derived from segments that use relative addressing (which is the default), then start() will be less than end() if the feature is on the opposite strand from the reference sequence. This breaks Bio::SeqI compliance, but is necessary to avoid having the real genomic locations designated by start() and end() swap places when changing reference points.
To avoid this behavior, call $segment->absolute(1) before fetching features from it. This will force everything into absolute coordinates.
For example:
my $segment = $db->segment(CHROMOSOME_I);
$segment->absolute(1);
my @features = $segment->features(transcript);
<<lessBio::DB::GFF::Feature is a stretch of sequence that corresponding to a single annotation in a GFF database. It inherits from Bio::DB::GFF::RelSegment, and so has all the support for relative addressing of this class and its ancestors. It also inherits from Bio::SeqFeatureI and so has the familiar start(), stop(), primary_tag() and location() methods (it implements Bio::LocationI too, if needed).
Bio::DB::GFF::Feature adds new methods to retrieve the annotations type, group, and other GFF attributes. Annotation types are represented by Bio::DB::GFF::Typename objects, a simple class that has two methods called method() and source(). These correspond to the method and source fields of a GFF file.
Annotation groups serve the dual purpose of giving the annotation a human-readable name, and providing higher-order groupings of subfeatures into features. The groups returned by this module are objects of the Bio::DB::GFF::Featname class.
Bio::DB::GFF::Feature inherits from and implements the abstract methods of Bio::SeqFeatureI, allowing it to interoperate with other Bioperl modules.
Generally, you will not create or manipulate Bio::DB::GFF::Feature objects directly, but use those that are returned by the Bio::DB::GFF::RelSegment->features() method.
Important note about start() vs end()
If features are derived from segments that use relative addressing (which is the default), then start() will be less than end() if the feature is on the opposite strand from the reference sequence. This breaks Bio::SeqI compliance, but is necessary to avoid having the real genomic locations designated by start() and end() swap places when changing reference points.
To avoid this behavior, call $segment->absolute(1) before fetching features from it. This will force everything into absolute coordinates.
For example:
my $segment = $db->segment(CHROMOSOME_I);
$segment->absolute(1);
my @features = $segment->features(transcript);
Download (4.7MB)
Added: 2006-06-09 License: Perl Artistic License Price:
1232 downloads
Bio::Graphics::Glyph::alignment 1.4
Bio::Graphics::Glyph::alignment is the alignment glyph. more>>
Bio::Graphics::Glyph::alignment is the "alignment" glyph.
SYNOPSIS
See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph >.
This is identical to the "graded_segments" glyph, and is used for drawing features that consist of discontinuous segments. The color intensity of each segment is proportionate to the score.
<<lessSYNOPSIS
See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph >.
This is identical to the "graded_segments" glyph, and is used for drawing features that consist of discontinuous segments. The color intensity of each segment is proportionate to the score.
Download (4.7MB)
Added: 2006-10-21 License: Perl Artistic License Price:
1099 downloads
Bio::Graphics::Glyph::minmax 1.4
Bio::Graphics::Glyph::minmax is the minmax glyph. more>>
Bio::Graphics::Glyph::minmax is the minmax glyph.
SYNOPSIS
See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph >.
This glyph is the common base class for Bio::Graphics::Glyph::graded_segments and Bio::Graphics::Glyph::xyplot. It adds an internal method named minmax() for calculating the upper and lower boundaries of scored features, and is not intended for end users.
<<lessSYNOPSIS
See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph >.
This glyph is the common base class for Bio::Graphics::Glyph::graded_segments and Bio::Graphics::Glyph::xyplot. It adds an internal method named minmax() for calculating the upper and lower boundaries of scored features, and is not intended for end users.
Download (4.7MB)
Added: 2006-10-10 License: Perl Artistic License Price:
1110 downloads
Bio::Graphics::Glyph::cds 1.4
Bio::Graphics::Glyph::cds module contains the cds glyph. more>>
Bio::Graphics::Glyph::cds module contains the "cds" glyph.
SYNOPSIS
See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph >.
This glyph draws features that are associated with a protein coding region. At high magnifications, draws a series of boxes that are color-coded to indicate the frame in which the translation occurs. At low magnifications, draws the amino acid sequence of the resulting protein. Amino acids that are created by a splice are optionally shown in a distinctive color.
OPTIONS
The following options are standard among all Glyphs. See Bio::Graphics::Glyph for a full explanation.
Option Description Default
------ ----------- -------
-fgcolor Foreground color black
-outlinecolor Synonym for -fgcolor
-bgcolor Background color turquoise
-fillcolor Synonym for -bgcolor
-linewidth Line width 1
-height Height of glyph 10
-font Glyph font gdSmallFont
-connector Connector type 0 (false)
-connector_color
Connector color black
-label Whether to draw a label 0 (false)
-description Whether to draw a description 0 (false)
-strand_arrow Whether to indicate 0 (false)
strandedness
-hilite Highlight color undef (no color)
In addition, the alignment glyph recognizes the following glyph-specific options:
Option Description Default
------ ----------- -------
-frame0f Color for first (+) frame background color
-frame1f Color for second (+) frame background color
-frame2f Color for third (+) frame background color
-frame0r Color for first (-) frame background color
-frame1r Color for second (-) frame background color
-frame2r Color for third (-) frame background color
-gridcolor Color for the "staff" lightslategray
-sixframe Draw a six-frame staff 0 (false; usually draws 3 frame)
-require_subparts
Dont draw the reading frame 0 (false)
unless it is a feature
subpart.
-codontable Codon table to use 1 (see Bio::Tools::CodonTable)
The -require_subparts option is suggested when rendering spliced transcripts which contain multiple CDS subparts. Otherwise, the glyph will hickup when zoomed way down onto an intron between two CDSs (a phantom reading frame will appear). For unspliced sequences, do *not* use -require_subparts.
<<lessSYNOPSIS
See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph >.
This glyph draws features that are associated with a protein coding region. At high magnifications, draws a series of boxes that are color-coded to indicate the frame in which the translation occurs. At low magnifications, draws the amino acid sequence of the resulting protein. Amino acids that are created by a splice are optionally shown in a distinctive color.
OPTIONS
The following options are standard among all Glyphs. See Bio::Graphics::Glyph for a full explanation.
Option Description Default
------ ----------- -------
-fgcolor Foreground color black
-outlinecolor Synonym for -fgcolor
-bgcolor Background color turquoise
-fillcolor Synonym for -bgcolor
-linewidth Line width 1
-height Height of glyph 10
-font Glyph font gdSmallFont
-connector Connector type 0 (false)
-connector_color
Connector color black
-label Whether to draw a label 0 (false)
-description Whether to draw a description 0 (false)
-strand_arrow Whether to indicate 0 (false)
strandedness
-hilite Highlight color undef (no color)
In addition, the alignment glyph recognizes the following glyph-specific options:
Option Description Default
------ ----------- -------
-frame0f Color for first (+) frame background color
-frame1f Color for second (+) frame background color
-frame2f Color for third (+) frame background color
-frame0r Color for first (-) frame background color
-frame1r Color for second (-) frame background color
-frame2r Color for third (-) frame background color
-gridcolor Color for the "staff" lightslategray
-sixframe Draw a six-frame staff 0 (false; usually draws 3 frame)
-require_subparts
Dont draw the reading frame 0 (false)
unless it is a feature
subpart.
-codontable Codon table to use 1 (see Bio::Tools::CodonTable)
The -require_subparts option is suggested when rendering spliced transcripts which contain multiple CDS subparts. Otherwise, the glyph will hickup when zoomed way down onto an intron between two CDSs (a phantom reading frame will appear). For unspliced sequences, do *not* use -require_subparts.
Download (4.7MB)
Added: 2007-07-11 License: Perl Artistic License Price:
836 downloads
Bio::Graphics::Panel 1.5.2_005 RCb
Bio::Graphics::Panel is a Perl module to generate GD images of Bio::Seq objects. more>>
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.
<<lessSYNOPSIS
# 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.
Download (5.7MB)
Added: 2006-12-06 License: Perl Artistic License Price:
1053 downloads
Bio::Das::Lite 1.49
Bio::Das::Lite is a Perl extension for the DAS (HTTP+XML) Protocol. more>>
Bio::Das::Lite is a Perl extension for the DAS (HTTP+XML) Protocol.
SYNOPSIS
use Bio::Das::Lite;
my $bdl = Bio::Das::Lite->new_from_registry({category => Chromosome});
my $results = $bdl->features(22);
SUBROUTINES/METHODS
new : Constructor
my $das = Bio::Das::Lite->new(http://das.ensembl.org/das/ensembl1834);
my $das = Bio::Das::Lite->new({
timeout => 60,
dsn => http://user:pass@das.ensembl.org/das/ensembl1834,
http_proxy => http://user:pass@webcache.local.com:3128/,
});
Options can be: dsn (optional scalar or array ref, URLs of DAS services)
timeout (optional int, HTTP fetch timeout in seconds)
http_proxy (optional scalar, web cache or proxy if not set in %ENV)
caching (optional bool, primitive caching on/off)
callback (optional code ref, callback for processed XML blocks)
registry (optional array ref containing DAS registry service URLs
defaults to http://das.sanger.ac.uk/registry/services/das)
proxy_user (optional scalar, username for authenticating forward-proxy)
proxy_pass (optional scalar, password for authenticating forward-proxy)
user_agent (optional scalar, User-Agent HTTP request header value)
new_from_registry : Constructor
Similar to new above but supports capabilities and category
in the given hashref, using them to query the DAS registry and
configuring the DSNs accordingly.
my $das = Bio::Das::Lite->new_from_registry({
capabilities => [features],
category => [Protein Sequence],
});
Options are as above, plus
capability (optional arrayref of capabilities)
category (optional arrayref of categories)
<<lessSYNOPSIS
use Bio::Das::Lite;
my $bdl = Bio::Das::Lite->new_from_registry({category => Chromosome});
my $results = $bdl->features(22);
SUBROUTINES/METHODS
new : Constructor
my $das = Bio::Das::Lite->new(http://das.ensembl.org/das/ensembl1834);
my $das = Bio::Das::Lite->new({
timeout => 60,
dsn => http://user:pass@das.ensembl.org/das/ensembl1834,
http_proxy => http://user:pass@webcache.local.com:3128/,
});
Options can be: dsn (optional scalar or array ref, URLs of DAS services)
timeout (optional int, HTTP fetch timeout in seconds)
http_proxy (optional scalar, web cache or proxy if not set in %ENV)
caching (optional bool, primitive caching on/off)
callback (optional code ref, callback for processed XML blocks)
registry (optional array ref containing DAS registry service URLs
defaults to http://das.sanger.ac.uk/registry/services/das)
proxy_user (optional scalar, username for authenticating forward-proxy)
proxy_pass (optional scalar, password for authenticating forward-proxy)
user_agent (optional scalar, User-Agent HTTP request header value)
new_from_registry : Constructor
Similar to new above but supports capabilities and category
in the given hashref, using them to query the DAS registry and
configuring the DSNs accordingly.
my $das = Bio::Das::Lite->new_from_registry({
capabilities => [features],
category => [Protein Sequence],
});
Options are as above, plus
capability (optional arrayref of capabilities)
category (optional arrayref of categories)
Download (0.032MB)
Added: 2007-03-20 License: Perl Artistic License Price:
949 downloads
Bio::Seq 1.4
Bio::Seq is a sequence object, with features. more>>
Bio::Seq is a sequence object, with features.
SYNOPSIS
# This is the main sequence object in Bioperl
# gets a sequence from a file
$seqio = Bio::SeqIO->new( -format => embl , -file => myfile.dat);
$seqobj = $seqio->next_seq();
# SeqIO can both read and write sequences; see Bio::SeqIO
# for more information and examples
# get from database
$db = Bio::DB::GenBank->new();
$seqobj = $db->get_Seq_by_acc(X78121);
# make from strings in script
$seqobj = Bio::Seq->new( -display_id => my_id,
-seq => $sequence_as_string);
# gets sequence as a string from sequence object
$seqstr = $seqobj->seq(); # actual sequence as a string
$seqstr = $seqobj->subseq(10,50); # slice in biological coordinates
# retrieves information from the sequence
# features must implement Bio::SeqFeatureI interface
@features = $seqobj->get_SeqFeatures(); # just top level
foreach my $feat ( @features ) {
print "Feature ",$feat->primary_tag," starts ",$feat->start," ends ",
$feat->end," strand ",$feat->strand,"n";
# features retain link to underlying sequence object
print "Feature sequence is ",$feat->seq->seq(),"n"
}
# sequences may have a species
if( defined $seq->species ) {
print "Sequence is from ",$species->binomial_name," [",$species->common_name,"]n";
}
# annotation objects are Bio::AnnotationCollectionIs
$ann = $seqobj->annotation(); # annotation object
# references is one type of annotations to get. Also get
# comment and dblink. Look at Bio::AnnotationCollection for
# more information
foreach my $ref ( $ann->get_Annotations(reference) ) {
print "Reference ",$ref->title,"n";
}
# you can get truncations, translations and reverse complements, these
# all give back Bio::Seq objects themselves, though currently with no
# features transfered
my $trunc = $seqobj->trunc(100,200);
my $rev = $seqobj->revcom();
# there are many options to translate - check out the docs
my $trans = $seqobj->translate();
# these functions can be chained together
my $trans_trunc_rev = $seqobj->trunc(100,200)->revcom->translate();
A Seq object is a sequence with sequence features placed on it. The Seq object contains a PrimarySeq object for the actual sequence and also implements its interface.
In Bioperl we have 3 main players that people are going to use frequently
Bio::PrimarySeq - just the sequence and its names, nothing else.
Bio::SeqFeatureI - a location on a sequence, potentially with a sequence
and annotation.
Bio::Seq - A sequence and a collection of sequence features
(an aggregate) with its own annotation.
Although Bioperl is not tied heavily to file formats these distinctions do map to file formats sensibly and for some bioinformaticians this might help
Bio::PrimarySeq - Fasta file of a sequence
Bio::SeqFeatureI - A single entry in an EMBL/GenBank/DDBJ feature table
Bio::Seq - A single EMBL/GenBank/DDBJ entry
By having this split we avoid a lot of nasty circular references (sequence features can hold a reference to a sequence without the sequence holding a reference to the sequence feature). See Bio::PrimarySeq and Bio::SeqFeatureI for more information.
Ian Korf really helped in the design of the Seq and SeqFeature system.
<<lessSYNOPSIS
# This is the main sequence object in Bioperl
# gets a sequence from a file
$seqio = Bio::SeqIO->new( -format => embl , -file => myfile.dat);
$seqobj = $seqio->next_seq();
# SeqIO can both read and write sequences; see Bio::SeqIO
# for more information and examples
# get from database
$db = Bio::DB::GenBank->new();
$seqobj = $db->get_Seq_by_acc(X78121);
# make from strings in script
$seqobj = Bio::Seq->new( -display_id => my_id,
-seq => $sequence_as_string);
# gets sequence as a string from sequence object
$seqstr = $seqobj->seq(); # actual sequence as a string
$seqstr = $seqobj->subseq(10,50); # slice in biological coordinates
# retrieves information from the sequence
# features must implement Bio::SeqFeatureI interface
@features = $seqobj->get_SeqFeatures(); # just top level
foreach my $feat ( @features ) {
print "Feature ",$feat->primary_tag," starts ",$feat->start," ends ",
$feat->end," strand ",$feat->strand,"n";
# features retain link to underlying sequence object
print "Feature sequence is ",$feat->seq->seq(),"n"
}
# sequences may have a species
if( defined $seq->species ) {
print "Sequence is from ",$species->binomial_name," [",$species->common_name,"]n";
}
# annotation objects are Bio::AnnotationCollectionIs
$ann = $seqobj->annotation(); # annotation object
# references is one type of annotations to get. Also get
# comment and dblink. Look at Bio::AnnotationCollection for
# more information
foreach my $ref ( $ann->get_Annotations(reference) ) {
print "Reference ",$ref->title,"n";
}
# you can get truncations, translations and reverse complements, these
# all give back Bio::Seq objects themselves, though currently with no
# features transfered
my $trunc = $seqobj->trunc(100,200);
my $rev = $seqobj->revcom();
# there are many options to translate - check out the docs
my $trans = $seqobj->translate();
# these functions can be chained together
my $trans_trunc_rev = $seqobj->trunc(100,200)->revcom->translate();
A Seq object is a sequence with sequence features placed on it. The Seq object contains a PrimarySeq object for the actual sequence and also implements its interface.
In Bioperl we have 3 main players that people are going to use frequently
Bio::PrimarySeq - just the sequence and its names, nothing else.
Bio::SeqFeatureI - a location on a sequence, potentially with a sequence
and annotation.
Bio::Seq - A sequence and a collection of sequence features
(an aggregate) with its own annotation.
Although Bioperl is not tied heavily to file formats these distinctions do map to file formats sensibly and for some bioinformaticians this might help
Bio::PrimarySeq - Fasta file of a sequence
Bio::SeqFeatureI - A single entry in an EMBL/GenBank/DDBJ feature table
Bio::Seq - A single EMBL/GenBank/DDBJ entry
By having this split we avoid a lot of nasty circular references (sequence features can hold a reference to a sequence without the sequence holding a reference to the sequence feature). See Bio::PrimarySeq and Bio::SeqFeatureI for more information.
Ian Korf really helped in the design of the Seq and SeqFeature system.
Download (4.7MB)
Added: 2006-10-10 License: Perl Artistic License Price:
1111 downloads
Bio::TreeIO::svggraph 1.4
Bio::TreeIO::svggraph is a simple output format that converts a Tree object to an SVG output. more>>
Bio::TreeIO::svggraph is a simple output format that converts a Tree object to an SVG output.
SYNOPSIS
use Bio::TreeIO;
my $in = new Bio::TreeIO(-file => input, -format => newick);
my $out = new Bio::TreeIO(-file => >output, -format => svggraph);
while( my $tree = $in->next_tree ) {
my $svg_xml = $out->write_tree($tree);
}
This outputs a tree as an SVG graphic using the SVG::Graph API[
<<lessSYNOPSIS
use Bio::TreeIO;
my $in = new Bio::TreeIO(-file => input, -format => newick);
my $out = new Bio::TreeIO(-file => >output, -format => svggraph);
while( my $tree = $in->next_tree ) {
my $svg_xml = $out->write_tree($tree);
}
This outputs a tree as an SVG graphic using the SVG::Graph API[
Download (4.7MB)
Added: 2006-08-01 License: Perl Artistic License Price:
1179 downloads
Bio::Graph::SimpleGraph 1.5.2_102
Bio::Graph::SimpleGraph is a Perl module that can create and manipulate undirected graphs. more>>
Bio::Graph::SimpleGraph is a Perl module that can create and manipulate undirected graphs.
SYNOPSIS
use Bio::Graph::SimpleGraph;
my $graph=new SimpleGraph;
# read pairs of nodes from STDIN
while () {
my($node1,$node2)=split;
$graph->add_edge($node1,$node2);
}
my @nodes=graph->nodes; # get list of nodes
my @edges=graph->edges; # get list of edges
foreach my $node (@nodes) {
my @neighbors=$node->neighbors; # get list of neighboring nodes
}
This is a simple, hopefully fast undirected graph package. The only reason this exists is that the standard CPAN Graph pacakge, Graph::Base, is seriously broken. The package implements a small and eclectic assortment of standard graph algorithms that we happened to need for our applications.
This module is a subclass of Class::AutoClass (available at CPAN). AutoClass auotgenerates simple accessor and mutator methods (aka get and set methods). It also automates class initialization.
Nodes can be any Perl values, including object references. Edges are pairs of nodes.
(Caveat: be careful with values that contain embedded instances of $; (the character Perl uses to separate components of multi-dimensional subscripts), because we use this in the text representation of edges.
The main data structures are:
An edge (x,y) is represented canonically as a two element list in
which the lexically smaller value is first. Eg, the node (b,a)
is represented as [a,b].
The graph contains
1) A hash mapping the text representation of a node to the node
itself. This is mostly relevant when the node is a reference.
2) A hash mapping the text representation of a node to a list of
the nodes neighbors.
3) A hash mapping the text representation of an edge to the edge itself.
<<lessSYNOPSIS
use Bio::Graph::SimpleGraph;
my $graph=new SimpleGraph;
# read pairs of nodes from STDIN
while () {
my($node1,$node2)=split;
$graph->add_edge($node1,$node2);
}
my @nodes=graph->nodes; # get list of nodes
my @edges=graph->edges; # get list of edges
foreach my $node (@nodes) {
my @neighbors=$node->neighbors; # get list of neighboring nodes
}
This is a simple, hopefully fast undirected graph package. The only reason this exists is that the standard CPAN Graph pacakge, Graph::Base, is seriously broken. The package implements a small and eclectic assortment of standard graph algorithms that we happened to need for our applications.
This module is a subclass of Class::AutoClass (available at CPAN). AutoClass auotgenerates simple accessor and mutator methods (aka get and set methods). It also automates class initialization.
Nodes can be any Perl values, including object references. Edges are pairs of nodes.
(Caveat: be careful with values that contain embedded instances of $; (the character Perl uses to separate components of multi-dimensional subscripts), because we use this in the text representation of edges.
The main data structures are:
An edge (x,y) is represented canonically as a two element list in
which the lexically smaller value is first. Eg, the node (b,a)
is represented as [a,b].
The graph contains
1) A hash mapping the text representation of a node to the node
itself. This is mostly relevant when the node is a reference.
2) A hash mapping the text representation of a node to a list of
the nodes neighbors.
3) A hash mapping the text representation of an edge to the edge itself.
Download (5.6MB)
Added: 2007-07-08 License: Perl Artistic License Price:
838 downloads
Bio::Map::CytoMap 1.4
Bio::Map::CytoMap is a Bio::MapI compliant map implementation handling cytogenic bands. more>>
Bio::Map::CytoMap is a Bio::MapI compliant map implementation handling cytogenic bands.
SYNOPSIS
use Bio::Map::CytoMap;
my $map = new Bio::Map::CytoMap(-name => human1,
-species => $human);
foreach my $marker ( @markers ) { # get a list of markers somewhere
$map->add_element($marker);
}
This is the simple implementation of cytogenetic maps based on Bio::Map::MapI. It handles the essential storage of name, species, type, and units as well as in memory representation of the elements of a map.
For CytoMaps type is hard coded to be cytogeneticmap and units are set to but can be set to something else.
<<lessSYNOPSIS
use Bio::Map::CytoMap;
my $map = new Bio::Map::CytoMap(-name => human1,
-species => $human);
foreach my $marker ( @markers ) { # get a list of markers somewhere
$map->add_element($marker);
}
This is the simple implementation of cytogenetic maps based on Bio::Map::MapI. It handles the essential storage of name, species, type, and units as well as in memory representation of the elements of a map.
For CytoMaps type is hard coded to be cytogeneticmap and units are set to but can be set to something else.
Download (4.7MB)
Added: 2006-11-03 License: Perl Artistic License Price:
1087 downloads
Bio::SeqIO::fastq 1.4
Bio::SeqIO::fastq is a fastq sequence input/output stream. more>>
Bio::SeqIO::fastq is a fastq sequence input/output stream.
SYNOPSIS
Do not use this module directly. Use it via the Bio::SeqIO class.
This object can transform Bio::Seq and Bio::Seq::SeqWithQuality objects to and from fastq flat file databases.
Fastq is a file format used frequently at the Sanger Centre to bundle a fasta sequence and its quality data. A typical fastaq entry takes the from:
@HCDPQ1D0501
GATTTGGGGTTCAAAGCAGTATCGATCAAATAGTAAATCCATTTGTTCAACTCACAGTTT.....
+HCDPQ1D0501
!*((((***+))%%%++)(%%%%).1***-+*))**55CCF>>>>>>CCCCCCC65.....
Fastq files have sequence and quality data on a single line and the quality values are single-byte encoded. To retrieve the decimal values for qualities you need to subtract 33 (or Octal 41) from each byte and then convert to a 2 digit + 1 space integer. You can check if 33 is the right number because the first byte which is always ! corresponds to a quality value of 0.
<<lessSYNOPSIS
Do not use this module directly. Use it via the Bio::SeqIO class.
This object can transform Bio::Seq and Bio::Seq::SeqWithQuality objects to and from fastq flat file databases.
Fastq is a file format used frequently at the Sanger Centre to bundle a fasta sequence and its quality data. A typical fastaq entry takes the from:
@HCDPQ1D0501
GATTTGGGGTTCAAAGCAGTATCGATCAAATAGTAAATCCATTTGTTCAACTCACAGTTT.....
+HCDPQ1D0501
!*((((***+))%%%++)(%%%%).1***-+*))**55CCF>>>>>>CCCCCCC65.....
Fastq files have sequence and quality data on a single line and the quality values are single-byte encoded. To retrieve the decimal values for qualities you need to subtract 33 (or Octal 41) from each byte and then convert to a 2 digit + 1 space integer. You can check if 33 is the right number because the first byte which is always ! corresponds to a quality value of 0.
Download (4.7MB)
Added: 2006-10-10 License: Perl Artistic License Price:
1115 downloads
Bio::AlignIO::msf 1.4
Bio::AlignIO::msf is a Perl module with msf sequence input/output stream. more>>
Bio::AlignIO::msf is a Perl module with msf sequence input/output stream.
SYNOPSIS
Do not use this module directly. Use it via the Bio::AlignIO class.
This object can transform Bio::Align::AlignI objects to and from msf flat file databases.
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
next_aln
Title : next_aln
Usage : $aln = $stream->next_aln()
Function: returns the next alignment in the stream. Tries to read *all* MSF
It reads all non whitespace characters in the alignment
area. For MSFs with weird gaps (eg ~~~) map them by using
$al->map_chars(~,-)
Returns : L< Bio::Align::AlignI > object
Args : NONE
write_aln
Title : write_aln
Usage : $stream->write_aln(@aln)
Function: writes the $aln object into the stream in MSF format
Sequence type of the alignment is determined by the first sequence.
Returns : 1 for success and 0 for error
Args : L< Bio::Align::AlignI > object
<<lessSYNOPSIS
Do not use this module directly. Use it via the Bio::AlignIO class.
This object can transform Bio::Align::AlignI objects to and from msf flat file databases.
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
next_aln
Title : next_aln
Usage : $aln = $stream->next_aln()
Function: returns the next alignment in the stream. Tries to read *all* MSF
It reads all non whitespace characters in the alignment
area. For MSFs with weird gaps (eg ~~~) map them by using
$al->map_chars(~,-)
Returns : L< Bio::Align::AlignI > object
Args : NONE
write_aln
Title : write_aln
Usage : $stream->write_aln(@aln)
Function: writes the $aln object into the stream in MSF format
Sequence type of the alignment is determined by the first sequence.
Returns : 1 for success and 0 for error
Args : L< Bio::Align::AlignI > object
Download (4.7MB)
Added: 2006-09-29 License: Perl Artistic License Price:
1121 downloads
Bio::Index::Blast 1.4
Bio::Index::Blast is a Perl module with indexes Blast reports and supports retrieval based on query accession(s). more>>
Bio::Index::Blast is a Perl module with indexes Blast reports and supports retrieval based on query accession(s).
SYNOPSIS
use strict;
use Bio::Index::Blast;
my ($indexfile,$file1, $file2);
my $index = new Bio::Index::Blast(-filename => $indexfile,
-write_flag => 1);
$index->make_index($file1, $file2);
my $id;
my $data = $index->get_stream($id);
my $bplite_report = $index->fetch_report($id);
print "query is ", $bplite_report->query, "n";
while( my $sbjct = $bplite_report->nextSbjct ) {
print $sbjct->name, "n";
while( my $hsp = $sbjct->nextHSP ) {
print "t e-value ", $hsp->P,
}
print "n";
}
This object allows one to build an index on a blast file (or files) and provide quick access to the blast report for that accession. Note: for best results use strict.
<<lessSYNOPSIS
use strict;
use Bio::Index::Blast;
my ($indexfile,$file1, $file2);
my $index = new Bio::Index::Blast(-filename => $indexfile,
-write_flag => 1);
$index->make_index($file1, $file2);
my $id;
my $data = $index->get_stream($id);
my $bplite_report = $index->fetch_report($id);
print "query is ", $bplite_report->query, "n";
while( my $sbjct = $bplite_report->nextSbjct ) {
print $sbjct->name, "n";
while( my $hsp = $sbjct->nextHSP ) {
print "t e-value ", $hsp->P,
}
print "n";
}
This object allows one to build an index on a blast file (or files) and provide quick access to the blast report for that accession. Note: for best results use strict.
Download (4.7MB)
Added: 2006-10-10 License: Perl Artistic License Price:
1111 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above bio graphics feature 1.4 search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed