3. Log File
Traceback (most recent call last):
File "/Users/lbullington/miniconda3/envs/qiime2-2017.8/lib/python3.5/site-packages/q2cli/commands.py", line 222, in call
results = action(**arguments)
File "", line 2, in alpha_rarefaction
File "/Users/lbullington/miniconda3/envs/qiime2-2017.8/lib/python3.5/site-packages/qiime2/sdk/action.py", line 201, in callable_wrapper
output_types, provenance)
File "/Users/lbullington/miniconda3/envs/qiime2-2017.8/lib/python3.5/site-packages/qiime2/sdk/action.py", line 392, in callable_executor
ret_val = callable(output_dir=temp_dir, **view_args)
File "/Users/lbullington/miniconda3/envs/qiime2-2017.8/lib/python3.5/site-packages/q2_diversity/_alpha/_visualizer.py", line 326, in alpha_rarefaction
c_df = _compute_summary(reindexed_df, category, counts=counts)
File "/Users/lbullington/miniconda3/envs/qiime2-2017.8/lib/python3.5/site-packages/q2_diversity/_alpha/_visualizer.py", line 219, in _compute_summary
summary_df.drop(['std', 'mean'], axis=1, inplace=True)
File "/Users/lbullington/miniconda3/envs/qiime2-2017.8/lib/python3.5/site-packages/pandas/core/generic.py", line 2161, in drop
new_axis = axis.drop(labels, errors=errors)
File "/Users/lbullington/miniconda3/envs/qiime2-2017.8/lib/python3.5/site-packages/pandas/core/indexes/base.py", line 3624, in drop
labels[mask])
ValueError: labels ['std' 'mean'] not contained in axis
Bummer, I was hoping something would jump out at me here, but this all looks just as expected .
Would it be possible for you to share your files (table-NoContams.qza and metadata-ASSP-Gradient-Foliar.txt) with me in a direct message? Without those files I am unsure as to how I can attempt to recreate this error! Thanks!
Thanks for sharing your data via DM @Lorinda! I think I found the problem - the column Treatment is entirely empty, and the alpha-rarefaction viz doesn't handle itself well in this case (note: bug report here!). In the meantime, if you just delete the Treatment column, you should be good to go (this worked fine for me when testing locally). Let me know how it goes, and thanks for your patience!!!!
Hey @thermokarst I'm not sure I follow you. The description column is populated with 'gradient', at least as I see it when I open it up in excel and google sheets, and validating using Keemei. I did try deleting this column though, and still am getting the same error. Maybe you can send me a copy of the metadata that you got to work?
@thermokarst, It worked! So for future reference, alpha rarefaction will not work if your metadata file contains a column filled entirely with 'NA'. Thanks so much for your time on this.
The jury is still out on that - perhaps we just don't try and plot the rarefaction curves for that category/column (and show some kind of warning in the viz); or else maybe this is enforced at a higher level - maybe QIIME 2 won't accept any metadata with an empty column? But in the near term, yeah, you should probably just drop any empty columns (I guess there is a higher level question in play here, too --- what does it even mean to have an empty category?)