In line 60 of get-parent-taxid-of-blacklist.py:
with open(taxIdFile, "w") as FW:
The 'w' truncates the file with each new taxid it adds to the output, resulting in only one taxid at the end of the process.
I propose to change this to:
with open(taxIdFile, "a+") as FW:
This will do the same without truncating the output file with each new taxid it finds to add to the blacklist.
In line 60 of get-parent-taxid-of-blacklist.py:
with open(taxIdFile, "w") as FW:
The 'w' truncates the file with each new taxid it adds to the output, resulting in only one taxid at the end of the process.I propose to change this to:
with open(taxIdFile, "a+") as FW:
This will do the same without truncating the output file with each new taxid it finds to add to the blacklist.Please share your thoughts. Cheers!