In the last Swissprot database I dowloaded there is some cases where the sequence headers don't have GN= or PE=. Consequently I get this error:
File "/home/jacda119/git/Annie/src/sprot.py", line 49, in get_fasta_info
while words[i].find("GN=") == -1 and words[i].find("PE=") == -1:
IndexError: list index out of range.
I propose a simple fix to not goes over the word table index.
In the last Swissprot database I dowloaded there is some cases where the sequence headers don't have GN= or PE=. Consequently I get this error: File "/home/jacda119/git/Annie/src/sprot.py", line 49, in get_fasta_info while words[i].find("GN=") == -1 and words[i].find("PE=") == -1: IndexError: list index out of range.
I propose a simple fix to not goes over the word table index.