Hello!
I have received a .biom file from our sequencing facility - they did some basic bioinformatics on the 16S V3-V4 sequences before sending it to me, including using deblur for denoising and fit-classifier-naive-bayes for feature classifying. I am now using this ASV table and doing some further processing.
One thing we want to do is normalizing our ASV table by our qPCR total bacterial count data (as suggested here). I have already applied the normalization to my ASV table and was able to biom convert and re-import my now normalized ASV table.
Typically when our lab works with relative abundance (i.e. non-normalized) data we rarefy the data before further analysis as suggested here, and this does not give me any issues. However, when I attempt to rarefy using either qiime feature-table rarefy, qiime diversity alpha-rarefaction OR qiime repeat-rarefy repeat-rarefy using my qPCR normalized data, I get this error: (see the exact command and verbose output below)
Plugin error from repeat-rarefy:
repeats may not contain negative values.
I am sure I don't have negative values in my normalized qPCR table, I checked and the minimum values is 0. I was unable to find a similar post in the forum - I'm under the impression using qPCR normalized ASVs (i.e. absolute abundance) is somewhat uncommon.
I am running: qiime2-2022.11 via miniconda3
Here are the commands I've attempted: Note the sampling depth chosen is the minimum frequency per feature in my dataset (generated with qiime feature-table summarize).
qiime feature-table rarefy --i-table abs-filtered-table.qza --p-sampling-depth 135266 --o-rarefied-table abs-filtered-rarefied-table.qza
qiime diversity alpha-rarefaction --i-table abs-filtered-table.qza --i-phylogeny tree.qza --p-max-depth 135266 --m-metadata-file metadata.tsv --o-visualization abs-alpha-rarefaction.qzv
qiime repeat-rarefy repeat-rarefy --i-table abs-filtered-table.qza --p-sampling-depth 135266 --p-repeat-times 100 --o-rarefied-table average_abs_rarefied_table.qza
For the sake of time (each time I run this it take 2+hours), here is the error message I received when I run qiime feature-table rarefy:
results = action(**arguments)
File "", line 2, in rarefy
File "/Users/sabrinaayoub-charette/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/qiime2/sdk/action.py", line 234, in bound_callable
outputs = self.callable_executor(scope, callable_args,
File "/Users/sabrinaayoub-charette/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/qiime2/sdk/action.py", line 381, in callable_executor
output_views = self._callable(**view_args)
File "/Users/sabrinaayoub-charette/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/q2_feature_table/_normalize.py", line 17, in rarefy
table = table.subsample(sampling_depth, axis='sample', by_id=False,
File "/Users/sabrinaayoub-charette/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/biom/table.py", line 2942, in subsample
_subsample(data, n, with_replacement)
File "biom/_subsample.pyx", line 59, in biom._subsample._subsample
File "<array_function internals>", line 180, in repeat
File "/Users/sabrinaayoub-charette/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 479, in repeat
return _wrapfunc(a, 'repeat', repeats, axis=axis)
File "/Users/sabrinaayoub-charette/miniconda3/envs/qiime2-2022.11/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 57, in _wrapfunc
return bound(*args, **kwds)
ValueError: repeats may not contain negative values.
Plugin error from feature-table:
repeats may not contain negative values.
See above for debug info.
I have also run this command:
qiime tools validate abs-filtered-table.qza
output: Result abs-filtered-table.qza appears to be valid at level=max.
Thanks for your help!!