Skip to content

Commit

Permalink
update output to account for LineagePair triple
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Oct 29, 2023
1 parent 8791cd3 commit a8daf3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions charcoal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ def load_contamination_summary(fp):
for k, items in x.items():
z = []
for source, target, count in items:
source = tuple([ LineagePair(rank, name) for rank, name in source ])
target = tuple([ LineagePair(rank, name) for rank, name in target ])
# get rank, name for each
source = tuple([ LineagePair(x[0], x[1]) for x in source ])
target = tuple([ LineagePair(x[0], x[1]) for x in target ])
z.append((source, target, count))
contam_d[k] = z

Expand Down
Loading

0 comments on commit a8daf3a

Please sign in to comment.