Mercurial > repos > iuc > circos
diff process-cytogenetic-bands.py @ 13:c4bde687c846 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/circos commit 0cfd88d16b0b20a66d4b21b037ddee6a8c440d88
author | iuc |
---|---|
date | Wed, 12 Apr 2023 15:09:05 +0000 |
parents | 014a21767ac4 |
children |
line wrap: on
line diff
--- a/process-cytogenetic-bands.py Mon Nov 22 12:23:12 2021 +0000 +++ b/process-cytogenetic-bands.py Wed Apr 12 15:09:05 2023 +0000 @@ -29,7 +29,7 @@ if line.startswith("#"): continue - lineData = dict(zip(COLS, line.split())) + lineData = dict(list(zip(COLS, line.split()))) color = lineData.get("itemRgb", "gpos50") if color not in colormap: @@ -47,7 +47,7 @@ # Does not look like an int continue - colormap[color] = "gx-karyotype-%s" % len(colormap.keys()) + colormap[color] = "gx-karyotype-%s" % len(list(colormap.keys())) sys.stderr.write( "{colorName} = {color}\n".format(colorName=colormap[color], color=color)