3 # ## Bioperl Test Harness Script for Modules
7 eval { require Test
; };
14 plan tests => $NTESTS;
18 foreach ( $Test::ntest..$NTESTS ) {
19 skip('Unable to run Coil tests, exe may not be installed or configured properly',1);
22 use Bio::Tools::Run::Coil;
26 if(! $ENV{'COILSDIR'}){
27 warn("Need to define env variable COILSDIR to run test");
31 my $factory = Bio::Tools::Run::Coil->new();
32 ok $factory->isa('Bio::Tools::Run::Coil');
34 my $prot_file= Bio::Root::IO->catfile("t","data","coil_protein_input");
36 my $seq1 = Bio::Seq->new();
37 my $seqstream = Bio::SeqIO->new(-file => $prot_file, -fmt => 'Fasta');
38 $seq1 = $seqstream->next_seq();
40 my $coil_present = $factory->executable();
42 unless ($coil_present) {
43 warn("coil program not found. Skipping tests $Test::ntest to $NTESTS.\n");
47 my @feat = $factory->predict_protein_features($seq1);
49 ok $feat[0]->isa('Bio::SeqFeatureI');
50 ok ($feat[0]->start,71);
51 ok ($feat[0]->end,91);