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

« back to all changes in this revision

Viewing changes to Bio/LiveSeq/Mutator.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:
1
 
# $Id: Mutator.pm,v 1.33.4.3 2006/10/02 23:10:21 sendu Exp $
 
1
# $Id: Mutator.pm 11480 2007-06-14 14:16:21Z sendu $
2
2
#
3
3
# bioperl module for Bio::LiveSeq::Mutator
4
4
#
593
593
    
594
594
    if ($len == 1 and $refstring =~ /[^\.\-\*\?]/ and 
595
595
        $varstring  =~ /[^\.\-\*\?]/ ) { #point
596
 
        $mutation = new Bio::LiveSeq::Mutation (-seq => $varstring,
 
596
        $mutation = Bio::LiveSeq::Mutation->new(-seq => $varstring,
597
597
                                                -pos => $pos,
598
598
                                                );
599
599
    }
600
600
    elsif ( $refstring =~ /^[^\.\-\*\?]+$/ and 
601
601
            $varstring  !~ /^[^\.\-\*\?]+$/ ) { # deletion
602
 
        $mutation = new Bio::LiveSeq::Mutation (-pos => $pos,
 
602
        $mutation = Bio::LiveSeq::Mutation->new(-pos => $pos,
603
603
                                                -len => $len
604
604
                                                );
605
605
    }
606
606
    elsif ( $refstring !~ /^[^\.\-\*\?]+$/ and 
607
607
            $varstring  =~ /^[^\.\-\*\?]+$/ ) { # insertion
608
 
        $mutation = new Bio::LiveSeq::Mutation (-seq => $varstring,
 
608
        $mutation = Bio::LiveSeq::Mutation->new(-seq => $varstring,
609
609
                                                -pos => $pos,
610
610
                                                -len => 0
611
611
                                                );
612
612
    } else { # complex
613
 
        $mutation = new Bio::LiveSeq::Mutation (-seq => $varstring,
 
613
        $mutation = Bio::LiveSeq::Mutation->new(-seq => $varstring,
614
614
                                                -pos => $pos,
615
615
                                                -len => $len
616
616
                                                );