Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: x-axis data missing in alpha rarefaction viz #360

Merged
merged 3 commits into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading