Module:Bio::Location::Split

From BioPerl
Jump to: navigation, search
Bio::Location::Split
PDoc Bio::Location::Split
CPAN Bio::Location::Split
metaCPAN Bio::Location::Split


Contents


Examples

Updating the sub-locations in a Split location

#!/usr/bin/perl -w
use Bio::Location::Split;
use Bio::Location::Simple;
 
my $split = Bio::Location::Split->new;
$split->add_sub_Location(Bio::Location::Simple->new(-start => 1, -end => 20,
						    -strand => 1));
$split->add_sub_Location(Bio::Location::Simple->new(-start => 25, -end => 35,
						    -strand => 1));
 
print $split->to_FTstring(),"\n";
for my $subloc ( $split->each_Location ) {
  $subloc->start($subloc->start + 1001);
  $subloc->end($subloc->end + 1001);
}
 
print $split->to_FTstring(),"\n";
Personal tools
Namespaces
Variants
Actions
Main Links
documentation
community
development
Toolbox