Skip to content

Commit

Permalink
fix consensus with int as taxid
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdenay committed Jun 25, 2024
1 parent 1f2eb91 commit c0dc596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taxidTools/Taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def consensus(self, taxid_list: list[Union[str, int]],

# Filtering missing
if ignore_missing:
taxid_list = [self.get(txd, None) for txd in taxid_list]
taxid_list = [self.get(str(txd), None) for txd in taxid_list]
taxid_list = [txd.taxid for txd in taxid_list if txd]

# Get lineages in REVERSED order
Expand Down

0 comments on commit c0dc596

Please sign in to comment.