Hello, I'm using ampliseq pipeline and have an error during the relative abundance step, so probably a classifier error but I don't see where could be the issue.
The error :
Error executing process > 'RelativeAbundanceReducedTaxa (1)'
Caused by:
Process RelativeAbundanceReducedTaxa (1)
terminated with an error exit status (1)
Command executed:
##on several taxa level
array=( 2 3 4 5 6 7 )
for i in ${array[@]}
do
collapse taxa
qiime taxa collapse --i-table filtered-table.qza --i-taxonomy taxonomy.qza --p-level $i --o-collapsed-table table-$i.qza
#convert to relative abundances
qiime feature-table relative-frequency --i-table table-$i.qza --o-relative-frequency-table relative-table-$i.qza
export to biom
qiime tools export relative-table-$i.qza --output-dir relative-table-$i
#convert to tab seperated text file
biom convert -i relative-table-$i/feature-table.biom -o rel-table-$i.tsv --to-tsv
done
Command exit status:
1
Command output:
Saved FeatureTable[Frequency] to: table-2.qza
Saved FeatureTable[RelativeFrequency] to: relative-table-2.qza
Command error:
Plugin error from taxa:
Requested level of 3 is larger than the maximum level available in taxonomy data (2).
And here is the command used to create the classifier :
singularity exec ampliseq-1.0.0.simg qiime tools import --type FeatureData[Sequence] --input-path silva_132_99_16S.fna --output-path silva_132_99_16S.qza
singularity exec ampliseq-1.0.0.simg qiime feature-classifier extract-reads --i-sequences silva_132_99_16S.qza --p-f-primer AGAGTTTGATCMTGGCTCAG --p-r-primer ATTACCGCGGCTGCTGGC --p-identity 80 --o-reads silva_v1v3_reads.qza
singularity exec ampliseq-1.0.0.simg qiime tools import --input-path consensus_taxonomy_7_levels.txt --output-path consensus_taxonomy_7_levels.qza --type 'FeatureData[Taxonomy]' --source-format HeaderlessTSVTaxonomyFormat
singularity exec ampliseq-1.0.0.simg qiime feature-classifier fit-classifier-naive-bayes --i-reference-reads silva_v1v3_reads.qza --i-reference-taxonomy consensus_taxonomy_7_levels.qza --o-classifier v1v3_99_classifier.qza
So do you have an idea where are the problem ?
Thanks