# HG changeset patch # User p.lucas # Date 1678724209 0 # Node ID 7e75c71e3c8e68da7cb37da1dbad4063d441acb2 # Parent 8c9418230a5ad0f99b74776f5c4497d63ce97f25 Uploaded 13 03 23 fin def load_taxids fix bug to avoid error with empty line diff -r 8c9418230a5a -r 7e75c71e3c8e TAXID_genusexpand_taxid2acc.py --- a/TAXID_genusexpand_taxid2acc.py Mon Mar 13 15:53:02 2023 +0000 +++ b/TAXID_genusexpand_taxid2acc.py Mon Mar 13 16:16:49 2023 +0000 @@ -192,6 +192,8 @@ cmd = "cut -f 1,2 "+taxid_acc_tabular_f+" | sort | uniq " for line in os.popen(cmd).readlines(): + if line != "": + continue k, v = line.rstrip().split() taxidlist.append(k) accnrlist.append(v)