Supply TEMPLATE and SUFFIX for temporary query sequence files.
[bioperl-run.git] / t / Seg.t
blob6b4c30f8cb7388ba0c1d44e36f8977ff81d75527
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 => 8);
9 use_ok('Bio::Tools::Run::Seg');
10 use_ok('Bio::SeqIO');
11 use_ok('Bio::Seq');
14 my $factory = Bio::Tools::Run::Seg->new();
15 isa_ok $factory, 'Bio::Tools::Run::Seg';
16 my $prot_file= test_input_file('test_prot.FastA');
18 my $seq1 = Bio::Seq->new();
19 my $seqstream = Bio::SeqIO->new(-file =>$prot_file, -fmt =>'Fasta');
20 $seq1 = $seqstream->next_seq();
22 SKIP: {
23 test_skip(-requires_executable => $factory,
24 -tests => 4);
26 my @feat = $factory->predict_protein_features($seq1);
28 isa_ok $feat[0],'Bio::SeqFeatureI';
29 is ($feat[0]->start, 214);
30 is ($feat[0]->end, 226);
31 is ($feat[0]->score, 2.26);