Skip to content

Commit

Permalink
Fixes biocore#43
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed Dec 19, 2022
1 parent 634e8d6 commit 9106b7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions redbiom/commands/summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ def taxonomy(from_, context, normalize_ranks, features):
lineages = redbiom.fetch.taxon_ancestors(context, ids,
normalize=normalize_ranks)

if lineages is None:
import sys
click.echo("No taxonomy information found.")
sys.exit(0)

import skbio
tree = skbio.TreeNode.from_taxonomy([(i, l)
for i, l in zip(ids, lineages)])
Expand Down

0 comments on commit 9106b7f

Please sign in to comment.