# HG changeset patch # User p.lucas # Date 1678781826 0 # Node ID 3d116861e380e4c26cce9daa1f74cdb7e83b9eda # Parent 5a4ac43fea6875f7fb2be6f4c9441c0a53cb25d1 Uploaded 14 03 23 def load_taxids fix bug chacking empty line diff -r 5a4ac43fea68 -r 3d116861e380 TAXID_genusexpand_taxid2acc.py --- a/TAXID_genusexpand_taxid2acc.py Tue Mar 14 08:07:14 2023 +0000 +++ b/TAXID_genusexpand_taxid2acc.py Tue Mar 14 08:17:06 2023 +0000 @@ -192,7 +192,7 @@ cmd = "cut -f 1,2 "+taxid_acc_tabular_f+" | sort | uniq " for line in os.popen(cmd).readlines(): - if line != "": + if line.rstrip() != "": k, v = line.rstrip().split() taxidlist.append(k) accnrlist.append(v)