Skip to content

Commit

Permalink
python 3 incompatibility, addresses #40
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdewitt authored Oct 2, 2019
1 parent a2dd6f1 commit 68eed51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/deduplicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def main():
cell_colors = dict(line.rstrip().split(',') for line in f)
with open(args.colormap, 'w') as f:
for seq_id, cell_ids in id_map.items():
colors_counts = Counter(cell_colors[cell_id] if cell_id in cell_colors else None for cell_id in cell_ids).items()
colors_counts = list(Counter(cell_colors[cell_id] if cell_id in cell_colors else None for cell_id in cell_ids).items())
if len(colors_counts) == 1 and colors_counts[0][0] != None and colors_counts != []:
colors_str = colors_counts[0][0]
print('{}\t{}'.format(seq_id, colors_str), file=f)
Expand Down

0 comments on commit 68eed51

Please sign in to comment.