Bio::Location::CoordinatePolicyI

Bio::Location::CoordinatePolicyI is an abstract interface for objects implementing a certain policy...
Download

Bio::Location::CoordinatePolicyI Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Hilmar Lapp and Jason Stajich
  • Publisher web site:
  • http://search.cpan.org/~birney/bioperl-1.4/Bio/Factory/SeqAnalysisParserFactoryI.pm

Bio::Location::CoordinatePolicyI Tags


Bio::Location::CoordinatePolicyI Description

Bio::Location::CoordinatePolicyI is an abstract interface for objects implementing a certain policy... Bio::Location::CoordinatePolicyI is an abstract interface for objects implementing a certain policy of computing integer-valued coordinates of a Location.SYNOPSIS # get a location, e.g., from a SeqFeature $location = $feature->location(); # examine its coordinate computation policy print "Location of feature ", $feature->primary_tag(), " employs a ", ref($location->coordinate_policy()), " instance for coordinate computationn"; # change the policy, e.g. because the user chose to do so $location->coordinate_policy(Bio::Location::NarrowestCoordPolicy->new());Objects implementing this interface are used by Bio::LocationI implementing objects to determine integer-valued coordinates when asked for it. While this may seem trivial for simple locations, there are different ways to do it for fuzzy or compound (split) locations. Classes implementing this interface implement a certain policy, like 'always widest range', 'always smallest range', 'mean for BETWEEN locations', etc. By installing a different policy object in a Location object, the behaviour of coordinate computation can be changed on-the-fly, and with a single line of code client-side. Requirements: · Perl


Bio::Location::CoordinatePolicyI Related Software