|
use vars qw($NUMTESTS $out_file) ; BEGIN {
$NUMTESTS = 2;
$out_file = File::Spec->catfile( qw(t data tmp-asciitree) );
if ( $@ ) {
}
plan tests => $NUMTESTS ;
}
my $verbose = $ENV { 'BIOPERLDEBUG' };
ok(1);
my $in = Bio::SeqIO->new( -format => 'genbank' ,
-verbose => $verbose ,
-file => Bio::Root::IO->catfile
qw(t data AE003644_Adh-genomic.gb) );
my $seq = $in ->next_seq;
my $out = Bio::SeqIO->new( -file => ">$out_file" ,
-verbose => $verbose ,
-format => 'asciitree' );
$out ->write_seq( $seq );
ok (-e $out_file );
END {
unlink $out_file if -e $out_file ;
}
|