18
18
# The following files or formats are failing: swiss genbank interpro embl
20
20
foreach my $format (@formats) {
21
print "======== $format ========\n" if $verbose;
21
print "======== $format ========\n" if $verbose;
28
my $str = Bio::SeqIO->new(-file=> test_input_file("test.$format"),
30
ok $seq = $str->next_seq();
31
print "Sequence 1 of 2 from $format stream:\n", $seq->seq, "\n\n" if $verbose;
32
unless ($format eq 'raw') {
33
is $seq->id, 'roa1_drome',"ID for format $format";
37
unless ($format eq 'gcg') { # GCG file can contain only one sequence
38
ok $seq = $str->next_seq();
39
print "Sequence 2 of 2 from $format stream:\n", $seq->seq, $seq->seq, "\n" if $verbose;
42
my $outfile = test_output_file();
43
my $out = Bio::SeqIO->new(-file => ">$outfile",
45
ok $out->write_seq($seq);
46
if ($format eq 'fasta') {
48
ok($id_type = $out->preferred_id_type('accession.version'),
28
my $str = Bio::SeqIO->new(-file=> test_input_file("test.$format"),
31
is $str->format(), $format;
33
ok $seq = $str->next_seq();
34
print "Sequence 1 of 2 from $format stream:\n", $seq->seq, "\n\n" if $verbose;
35
unless ($format eq 'raw') {
36
is $seq->id, 'roa1_drome',"ID for format $format";
40
unless ($format eq 'gcg') { # GCG file can contain only one sequence
41
ok $seq = $str->next_seq();
42
print "Sequence 2 of 2 from $format stream:\n", $seq->seq, $seq->seq, "\n" if $verbose;
45
my $outfile = test_output_file();
46
my $out = Bio::SeqIO->new(-file => ">$outfile",
48
ok $out->write_seq($seq);
49
if ($format eq 'fasta') {
51
ok($id_type = $out->preferred_id_type('accession.version'),
55
58
# from testformats.pl
105
108
print "in is \n", join('', @datain), "\n";
106
print "out is \n", join('',@dataout), "\n";
109
print "out is \n", join('',@dataout), "\n";