Mercurial > repos > p.lucas > taxid_genusexpand_taxid2acc
changeset 9:7e75c71e3c8e draft
Uploaded 13 03 23 fin def load_taxids fix bug to avoid error with empty line
author | p.lucas |
---|---|
date | Mon, 13 Mar 2023 16:16:49 +0000 |
parents | 8c9418230a5a |
children | 5a4ac43fea68 |
files | TAXID_genusexpand_taxid2acc.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)