Skip to content

Commit

Permalink
Bio::SeqFeature::Primer refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
fangly committed Feb 27, 2012
1 parent 54b138e commit 20b773e
Show file tree
Hide file tree
Showing 5 changed files with 293 additions and 302 deletions.
7 changes: 2 additions & 5 deletions Bio/Seq/PrimedSeq.pm
Expand Up @@ -44,7 +44,7 @@ flanking a target region
# use primer3 to design some primers
my $primer3run = Bio::Tools::Run::Primer3->new(-seq => $seq);
$primer3run -> run; # run it with the default parameters
$primer3run->run; # run it with the default parameters
# create a file to write the results to
my $seqout = Bio::SeqIO->new(-file => ">primed_sequence.gbk",
Expand Down Expand Up @@ -319,11 +319,8 @@ sub annotated_sequence {

sub amplicon {
my ($self,@args) = @_;
my $id = $self->{'-seq'}->{'id'};
unless ($id) {$id=""}
# this just prevents a warning when $self->{'-seq'}->{'id'} is not defined
my $id = $self->{'-seq'}->{'id'} || '';
$id = "Amplicon from ".$id;

my $seqobj=Bio::Seq->new(-id=>$id, seq=>$self->{'amplicon_sequence'});
return $seqobj;
}
Expand Down

0 comments on commit 20b773e

Please sign in to comment.