3 ## Bioperl Test Harness Script for Modules
8 test_begin
(-tests
=> 9);
9 use_ok
('Bio::Tools::Run::Promoterwise');
14 my @params = ('-verbose' => test_debug
(), 'silent' => 1, 'quiet' => 1);
15 my $factory = Bio
::Tools
::Run
::Promoterwise
->new(@params);
16 isa_ok
$factory,'Bio::Tools::Run::Promoterwise';
19 test_skip
(-requires_executable
=> $factory,
23 $factory->quiet($bequiet); # Suppress pseudowise messages to terminal
25 #test with one file with 2 sequences
26 my $inputfilename = test_input_file
('sim4_cdna.fa');
27 my $seqstream1 = Bio
::SeqIO
->new(-file
=> $inputfilename,
29 my $seq1 = Bio
::Seq
->new();
30 $seq1 = $seqstream1->next_seq();
32 $inputfilename = test_input_file
('sim4_genomic.fa');
33 my $seqstream2 = Bio
::SeqIO
->new(-file
=> $inputfilename,
35 my $seq2 = Bio
::Seq
->new();
36 $seq2 = $seqstream2->next_seq();
38 my @fp = $factory->run($seq1, $seq2);
39 my $first = $fp[0]->feature1;
40 my $second = $fp[0]->feature2;
42 my @sub = $first->sub_SeqFeature;
43 my @sub2 = $second->sub_SeqFeature;
46 is
$sub2[0]->start,29;
49 is
$sub[0]->seq->seq,'GTTGTGCTGGGGGGG';
50 is
$sub[0]->score,1596.49;