这段代码工作正常,但现在它抱怨,genbank 结构改变了吗?
#!/usr/bin/perl -w
#use strinct ;
use Bio::SeqIO;
use Bio::Seq;
use Bio::DB::EUtilities;
@refSeqIDs=qw(NC_000915.1 NC_017379.1 NC_017371.1 NC_017354.1);
foreach my $refSeqIDs (@refSeqIDs){
my $factory = Bio::DB::EUtilities->new(-eutil => 'efetch',-db=> 'protein',- rettype => 'gb',
-email => 'x@y.com',-id=> $refSeqIDs);
my $rawfile = "$refSeqIDs.gbk";
$factory->get_Response(-file =>"$refSeqIDs.gbk");
my $seqio_object = Bio::SeqIO->new(-format=>"Genbank",-file =>"$refSeqIDs.gbk");
while ( my $seq_object=$seqio_object->next_seq){
$sequence=$seq_object->seq;
print ("$sequence\n");
}
}