fit SABlast skip number
[bioperl-run.git] / t / Prints.t
blob85ac18792dec0b10499e454c493eb490d585d889
1 #!/usr/local/bin/perl
2 #-*-Perl-*-
3 # ## Bioperl Test Harness Script for Modules
4 # #
5 use strict;
6 BEGIN {
7 use Bio::Root::Test;
8 test_begin(-tests => 7);
9 use_ok('Bio::Tools::Run::Prints');
10 use_ok('Bio::SeqIO');
11 use_ok('Bio::Seq');
14 my $db = test_input_file("prints.dat");
15 my @params = ('DB' => $db);
17 my $factory = Bio::Tools::Run::Prints->new(@params);
18 isa_ok $factory,'Bio::Tools::Run::Prints';
19 my $prot_file= test_input_file('Prints_prot.FastA');
21 my $seq1 = Bio::Seq->new();
22 my $seqstream = Bio::SeqIO->new(-file => $prot_file, -fmt => 'Fasta');
23 $seq1 = $seqstream->next_seq();
25 SKIP: {
26 test_skip(-requires_executable => $factory,
27 -tests => 3);
28 my @feat = $factory->predict_protein_features($seq1);
30 isa_ok $feat[0],'Bio::SeqFeatureI';
31 is ($feat[0]->start,29);
32 is ($feat[0]->end,53);