~ubuntu-branches/ubuntu/saucy/bioperl/saucy-proposed

« back to all changes in this revision

Viewing changes to Bio/Map/OrderedPositionWithDistance.pm

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-03-10 07:19:11 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310071911-fukqzw54pyb1f0bd
Tags: 1.6.0-2
* Removed patch system (not used):
  - removed instuctions in debian/rules;
  - removed quilt from Build-Depends in debian/control.
* Re-enabled tests:
  - uncommented test command in debian/rules;
  - uncommented previously missing build-dependencies in debian/control.
  - Re-enabled tests and uncommented build-dependencies accordingly.
* Removed libmodule-build-perl and libtest-harness-perl from
  Build-Depends-Indep (provided by perl-modules).
* Better cleaning of empty directories using find -type d -empty -delete
  instead of rmdir in debian/rules (LP: #324001).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
    use Bio::Map::OrderedPositionWithDistance;
22
22
        # the first marker in the sequence
23
 
    my $position = new Bio::Map::OrderedPositionWithDistance(-positions => 1,
 
23
    my $position = Bio::Map::OrderedPositionWithDistance->new(-positions => 1,
24
24
                        -distance => 22.3 );
25
25
        # the second marker in the sequence, 15.6 units from the fist one
26
 
    my $position2 = new Bio::Map::OrderedPositionWithDistance(-positions => 2,
 
26
    my $position2 = Bio::Map::OrderedPositionWithDistance->new(-positions => 2,
27
27
                        -distance => 15.6 );
28
28
        # the third marker in the sequence, coincidental with the second
29
29
        # marker
30
 
    my $position3 = new Bio::Map::OrderedPositionWithDistance(-positions => 3,
 
30
    my $position3 = Bio::Map::OrderedPositionWithDistance->new(-positions => 3,
31
31
                        -distance => 0 );
32
32
 
33
33
 
94
94
=head2 new
95
95
 
96
96
 Title   : new
97
 
 Usage   : my $obj = new Bio::Map::OrderedPositionWithDistance();
 
97
 Usage   : my $obj = Bio::Map::OrderedPositionWithDistance->new();
98
98
 Function: Builds a new Bio::Map::OrderedPositionWithDistance object 
99
99
 Returns : Bio::Map::OrderedPositionWithDistance
100
100
 Args    : -positions  - Should be a single value representing the order