changeset 11:3d116861e380 draft

Uploaded 14 03 23 def load_taxids fix bug chacking empty line
author p.lucas
date Tue, 14 Mar 2023 08:17:06 +0000
parents 5a4ac43fea68
children 19e175a84d0e
files TAXID_genusexpand_taxid2acc.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)