# HG changeset patch # User p.lucas # Date 1678781234 0 # Node ID 5a4ac43fea6875f7fb2be6f4c9441c0a53cb25d1 # Parent 7e75c71e3c8e68da7cb37da1dbad4063d441acb2 Uploaded 14 03 23 def load_taxids fix bug when empty line diff -r 7e75c71e3c8e -r 5a4ac43fea68 TAXID_genusexpand_taxid2acc.py --- a/TAXID_genusexpand_taxid2acc.py Mon Mar 13 16:16:49 2023 +0000 +++ b/TAXID_genusexpand_taxid2acc.py Tue Mar 14 08:07:14 2023 +0000 @@ -193,10 +193,9 @@ for line in os.popen(cmd).readlines(): if line != "": - continue - k, v = line.rstrip().split() - taxidlist.append(k) - accnrlist.append(v) + k, v = line.rstrip().split() + taxidlist.append(k) + accnrlist.append(v) return taxidlist # --------------------------------------------------------------------------