Hi @colinvwood ,
Thank you so much again! Well, I tried using qiime taxa collapse (as I did before, to show the taxonomic classification on level of genus):
qiime taxa collapse
--i-table table-dada2.qza
--i-taxonomy taxonomy.qza
--p-level 6
--o-collapsed-table genus.qza
And then I used the input to qiime feature-table filter-features as you said (in this case i filtered only for bipolar):
qiime feature-table filter-features
--i-table genus.qza
--m-metadata-file sample-metadata.tsv
--p-where "[Host_disease]='BipolarDisorder'"
--o-filtered-table feature-frequency-bipolar.qza
And then I tried to calculate ancombc:
qiime composition ancombc --i-table feature-frequency-bipolar.qza --m-metadata-file sample-metadata.tsv --p-formula Host_disease --o-differentials ancombcbipolar.qza
But then this error appeared:
Plugin error from composition:
('Value provided in reference_levels
parameter not associated with any IDs in the feature table. Please make sure the value(s) selected in each column::value pair are associated with IDs present in the feature table. \n\n Value not associated with any IDs in the table: "BipolarDisorder"', ' IDs not found in table: "Index(['SRR7690036', 'SRR7690039', 'SRR7690040', 'SRR7690043', 'SRR7690044',\n 'SRR7690046', 'SRR7690047', 'SRR7690048', 'SRR7690049', 'SRR7690053',\n ...\n 'SRR7690201', 'SRR7690203', 'SRR7690204', 'SRR7690205', 'SRR7690206',\n 'SRR7690209', 'SRR7690210', 'SRR7690211', 'SRR7690212', 'SRR7690213'],\n dtype='object', name='SampleID', length=115)"')
Debug info has been saved to /tmp/qiime2-q2cli-err-ga1w7cqh.log
Debug info:
Traceback (most recent call last):
File "/usr/local/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/q2cli/commands.py", line 468, in call
results = action(**arguments)
File "", line 2, in ancombc
File "/usr/local/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/sdk/action.py", line 274, in bound_callable
outputs = self.callable_executor(
File "/usr/local/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/qiime2/sdk/action.py", line 509, in callable_executor
output_views = self._callable(**view_args)
File "/usr/local/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/q2_composition/_ancombc.py", line 41, in ancombc
return _ancombc(
File "/usr/local/miniconda3/envs/qiime2-2023.5/lib/python3.8/site-packages/q2_composition/_ancombc.py", line 207, in _ancombc
raise ValueError('Value provided in reference_levels
'
ValueError: ('Value provided in reference_levels
parameter not associated with any IDs in the feature table. Please make sure the value(s) selected in each column::value pair are associated with IDs present in the feature table. \n\n Value not associated with any IDs in the table: "BipolarDisorder"', ' IDs not found in table: "Index(['SRR7690036', 'SRR7690039', 'SRR7690040', 'SRR7690043', 'SRR7690044',\n 'SRR7690046', 'SRR7690047', 'SRR7690048', 'SRR7690049', 'SRR7690053',\n ...\n 'SRR7690201', 'SRR7690203', 'SRR7690204', 'SRR7690205', 'SRR7690206',\n 'SRR7690209', 'SRR7690210', 'SRR7690211', 'SRR7690212', 'SRR7690213'],\n dtype='object', name='SampleID', length=115)"')
Am I doing something wrong?