Skip to content

Commit

Permalink
Merge github.com:bioperl/bioperl-live into amplicons
Browse files Browse the repository at this point in the history
  • Loading branch information
fangly committed Mar 3, 2012
2 parents 1da375e + 68c722a commit 9625031
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Bio/Tools/IUPAC.pm
Expand Up @@ -18,14 +18,14 @@ an ambiguous IUPAC sequence
=head1 SYNOPSIS
use Bio::Seq;
use Bio::PrimarySeq;
use Bio::Tools::IUPAC;
# Get the IUPAC code for proteins
my %iupac_prot = Bio::Tools::IUPAC->new->iupac_iup;
# Create a sequence with degenerate residues
my $ambiseq = Bio::Seq->new(-seq => 'ARTCGUTGN', -alphabet => 'dna');
my $ambiseq = Bio::PrimarySeq->new(-seq => 'ARTCGUTGN', -alphabet => 'dna');
# Create all possible non-degenerate sequences
my $iupac = Bio::Tools::IUPAC->new(-seq => $ambiseq);
Expand Down Expand Up @@ -115,11 +115,11 @@ report the IUPAC mapping between ambiguous and non-ambiguous residues
=item *
produce a stream of all possible corresponding unambiguous Bio::Seq objects given
an ambiguous Bio::Seq object
an ambiguous sequence object
=item *
convert an ambiguous Bio::Seq object to a corresponding regular expression
convert an ambiguous sequence object to a corresponding regular expression
=back
Expand Down Expand Up @@ -293,7 +293,7 @@ sub new {

if (defined $seq) {
if (not $seq->isa('Bio::PrimarySeqI')) {
$self->throw('Must supply a Bio::Seq object');
$self->throw('Must supply a sequence object');
}
if (length $seq->seq == 0) {
$self->throw('Sequence had zero-length');
Expand Down

0 comments on commit 9625031

Please sign in to comment.