1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 27);
12 use_ok('Bio::Tools::FootPrinter');
15 my $inputfilename= test_input_file('footprinter.out');
16 my $parser = Bio::Tools::FootPrinter->new(-file => $inputfilename);
18 my @species = qw(TETRAODON CHICKEN MOUSE HAMSTER HUMAN PIG);
19 while (my $feat = $parser->next_feature){
20 is($feat->seq_id, shift @species);
21 foreach my $sub ($feat->sub_SeqFeature){
26 is $sub[0]->seq_id, 'TETRAODON-motif1';
27 is $sub[0]->start,352;
29 is $sub[0]->seq->seq,'tacaggatgca';
30 is $sub[1]->seq_id, 'TETRAODON-motif2';
31 is $sub[1]->start,363;
33 is $sub[1]->seq->seq,'ccatatttgga';
35 is $sub[2]->seq_id, 'CHICKEN-motif1';
36 is $sub[2]->start,363;
38 is $sub[2]->seq->seq,'cacaggatgta';
40 is $sub[3]->seq_id, 'CHICKEN-motif2';
41 is $sub[3]->start,376;
43 is $sub[3]->seq->seq,'ccatataagga';
45 is $sub[4]->seq_id, 'MOUSE-motif1';
46 is $sub[4]->start,234;
48 is $sub[4]->seq->seq,'cacaggatgt';