When used other alpha diversity indices showing error in qiime2-2019.10

I have installed/updated to the latest qiime version qiime2-2019.10. I want to generate results from other indices like Chao1 and Simpson. I used the following information obtained from this link:

There it is shown that in place of "--p-metric", we can change to any other indices. So I used the table and rooted tree created using the previous version of qiime2 following were my commands
--i-table table.qza
--i-phylogeny rooted-tree.qza
--p-metric simpson
--o-alpha-diversity simpson-10-12-2019.qza

But after running this I am getting the following error:
/home/gene/sankar/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/ijson/backends/init.py:21: UserWarning: Cannot determine yajl version, assuming <1.0.12
warnings.warn('Cannot determine yajl version, assuming <1.0.12')

Plugin error from diversity:
Parameter 'metric' received 'simpson' as an argument, which is incompatible with parameter type: Str % Choices('faith_pd')
Debug info has been saved to /tmp/qiime2-q2cli-err-9o053jpn.log

Following is the debug info saved in qiime2-q2cli-err-9o053jpn.log file
Traceback (most recent call last):
File "/home/gene/sankar/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/q2cli/commands.py", line 328, in call
results = action(**arguments)
File "</home/gene/sankar/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/decorator.py:decorator-gen-377>", line 2, in alpha_phylogenetic
File "/home/gene/sankar/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/qiime2/sdk/action.py", line 203, in bound_callable
self.signature.check_types(**user_input)
File "/home/gene/sankar/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/qiime2/core/type/signature.py", line 354, in check_types
% (name, parameter, spec.qiime_type))
TypeError: Parameter 'metric' received 'simpson' as an argument, which is incompatible with parameter type: Str % Choices('faith_pd')

Can you please help me to resolve this error as I need to generate new figures based on new indices for the revision of my paper.

Hi Sree,

The command you’re running is typically used for faith_pd. Simpson does not require a phylogenetic tree. Instead, try running:

qiime diversity alpha
–i-table table.qza
–p-metric simpson
–o-alpha-diversity simpson-10-12-2019.qza

Best,
Stephanie

3 Likes

Dear Stephanieorch,

Thank you very much for the information. This solved my problem.
Regards
Sree

1 Like

A post was split to a new topic: How to specify different alpha diversity metrics