1 # -*-Perl-*- Test Harness script for Bioperl
11 test_begin(-tests => 10);
14 use_ok('Bio::Seq::PrimedSeq');
17 my ($seqio, $seq, $left, $right, $primed_seq, $left_test, $annseq, $amplicon, $returnedseq);
19 $seqio=Bio::SeqIO->new(-file=>test_input_file('primedseq.fa'));
20 $seq=$seqio->next_seq;
21 $left=Bio::SeqFeature::Primer->new(-seq=>'CTTTTCATTCTGACTGCAACG');
22 $right=Bio::SeqFeature::Primer->new(-seq=>'GGTGGTGCTAATGCGT');
25 ok $primed_seq = Bio::Seq::PrimedSeq->new(-seq=>$seq, -left_primer=>$left, -right_primer=>$right);
26 ok $left_test = $primed_seq->get_primer('left');
28 ok $annseq = $primed_seq->annotated_sequence; # should I check that this is what I think it is, or just be happy?
29 ok $amplicon=$primed_seq->amplicon->seq;
30 is uc($amplicon), uc('cttttcattctgactgcaacgGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGCTTCTGAACTGGTTACCTGCCGTGAGTAAATTAAAATTTTATTGACTTAGGTCACTAAATACTTTAACCAATATAGGCATAGCGCACAGACAGATAAAAATTACAGAGTACACAACATCCATGAAacgcattagcaccacc');
31 ok $returnedseq=$primed_seq->seq;
32 is $returnedseq->seq, $seq->seq;