Skip to content

Commit

Permalink
Make Bio::Tools::Primer3 use the clone() method from Bio::Root::Root
Browse files Browse the repository at this point in the history
  • Loading branch information
fangly committed Aug 8, 2012
1 parent 64ce4c8 commit 6f7c56e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Bio/Tools/Primer3.pm
Expand Up @@ -129,7 +129,6 @@ use strict;
use Bio::Seq;
use Bio::Seq::PrimedSeq;
use Bio::SeqFeature::Primer;
use Clone qw(clone);

use vars qw($AUTOLOAD @PRIMER3_PARAMS %OK_FIELD $ID);

Expand Down Expand Up @@ -338,9 +337,10 @@ sub next_primer {
}
}

my $primed_seq = Bio::Seq::PrimedSeq->new(-target_sequence => clone($self->{'seqobject'}),
-left_primer => $left_seq,
-right_primer => $right_seq,
my $primed_seq = Bio::Seq::PrimedSeq->new(
-target_sequence => $self->{'seqobject'}->clone,
-left_primer => $left_seq,
-right_primer => $right_seq,
);

# add data to the the PrimedSeq object that's not specific to the Primers
Expand Down
3 changes: 1 addition & 2 deletions t/Tools/Primer3.t
Expand Up @@ -8,8 +8,7 @@ BEGIN {
use lib '.';
use Bio::Root::Test;

test_begin(-tests => 14,
-requires_module => 'Clone');
test_begin(-tests => 14);

use_ok('Bio::Tools::Primer3');
}
Expand Down

0 comments on commit 6f7c56e

Please sign in to comment.