Anybody have this problem before? Any suggestion about the reason?
The script creates the files containing the genome sequences but it appears at the end of the process.
Line in my script
File "/home/flira/scripts/list_ncbi_download_genome_vs_02.py", line 97, in <module>
SeqIO.write(SeqIO.parse(genbank_file, "genbank"), genome_file, "fasta")
Warnings that appear:
File "/usr/lib/python2.7/dist-packages/Bio/SeqIO/__init__.py", line 481, in write
count = writer_class(fp).write_file(sequences)
File "/usr/lib/python2.7/dist-packages/Bio/SeqIO/Interfaces.py", line 209, in write_file
count = self.write_records(records)
File "/usr/lib/python2.7/dist-packages/Bio/SeqIO/Interfaces.py", line 193, in write_records
for record in records:
File "/usr/lib/python2.7/dist-packages/Bio/SeqIO/__init__.py", line 600, in parse
for r in i:
File "/usr/lib/python2.7/dist-packages/Bio/GenBank/Scanner.py", line 478, in parse_records
record = self.parse(handle, do_features)
File "/usr/lib/python2.7/dist-packages/Bio/GenBank/Scanner.py", line 462, in parse
if self.feed(handle, consumer, do_features):
File "/usr/lib/python2.7/dist-packages/Bio/GenBank/Scanner.py", line 434, in feed
self._feed_feature_table(consumer, self.parse_features(skip=False))
File "/usr/lib/python2.7/dist-packages/Bio/GenBank/Scanner.py", line 159, in parse_features
raise ValueError("Premature end of line during features table")
Link for the same issue in stackoverflow.com https://stackoverflow.com/questions/47792217/seqio-parse-python-premature-end-of-line-during-features-table-solved-answer-i
Cross-pointed on the stackoverflow
We discourage simultaneously crossposting identical question on multiple sites.
This duplicates the effort of the answerers (they can't see that a question was answered).
And it also spreads out the answers, which makes it harder to other users to track the thread.
Sorry for that but the frequency of responses here has a delay comparing with Stackoverflow and I published there too. For instance, I put the link to both topics and edited the title to solved in both.