Skip to content

Commit

Permalink
BUG: x-axis data missing in alpha rarefaction viz (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgehret committed Jun 20, 2024
1 parent 01f9fcc commit 411191a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions q2_diversity/_alpha/_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ def alpha_rarefaction(output_dir: str, table: biom.Table, max_depth: int,
raise ValueError("All metadata filtered after dropping columns "
"that contained non-categorical data.")
metadata_df.columns = pd.MultiIndex.from_tuples(
[(c, '') for c in metadata_df.columns])
[(c, '') for c in metadata_df.columns],
names=('_alpha_rarefaction_depth_column_', 'iter'))
columns = metadata_df.columns.get_level_values(0)

data = _compute_rarefaction_data(table, min_depth, max_depth,
steps, iterations, phylogeny, metrics)

Expand Down

0 comments on commit 411191a

Please sign in to comment.