3 # ## Bioperl Test Harness Script for Modules
8 test_begin
(-tests
=> 6);
9 use_ok
('Bio::Tools::Run::Genscan');
10 use_ok
('Bio::Root::IO');
14 test_skip
(-requires_env
=> 'GENSCANDIR', -tests
=> 4);
16 my $paramfile = Bio
::Root
::IO
->catfile($ENV{'GENSCANDIR'},"HumanIso.smat");
17 my @params = ('MATRIX',$paramfile);
18 my $factory = Bio
::Tools
::Run
::Genscan
->new(@params);
19 isa_ok
$factory, 'Bio::Tools::Run::Genscan';
22 my $inputfilename = test_input_file
("Genscan.FastA");
23 my $seq1 = Bio
::Seq
->new();
24 my $seqstream = Bio
::SeqIO
->new(-file
=> $inputfilename, -format
=> 'Fasta');
25 $seq1 = $seqstream->next_seq();
27 test_skip
(-requires_executable
=> $factory,
31 my @feat = $factory->predict_genes($seq1);
33 my $protein = $feat[0]->predicted_protein();
35 isa_ok
$feat[0], "Bio::SeqFeatureI";
36 isa_ok
$protein, "Bio::PrimarySeqI";