Thanks to your genius work@ Nicholas_Bokulich(https://doi.org/10.1038/s41467-019-12669-6) I found a better way to analyze my data which is 16S rRNA sequencing Microbial DNA from mouse fecal samples(PCR amplification targeted the V3–V4 region of the 16s rDNA.).So I decided to re-analyze my 16S data.
#1.The bacterial reference sequence which is specific for this study is obtained by qiime feature-classifier extract-reads
extraction from the 16S full-length sequence in the silva database.
qiime feature-classifier extract-reads \
--i-sequences silva-138-99-full_seqs.qza \
--p-f-primer CCTACGGGNGGCWGCAG \
--p-r-primer GACTACHVGGGTATCTAATCC \
--o-reads silva-138-99-full_seqs-v3v4-seqs.qza
#2.Then , I'm trying to train the silva-138-99-full_seqs-v3v4-seqs reference database with the animal-distal-gut.qza as the class-weight within qiime feature-classifier fit-classifier-naive-bayes
. This is when an error occurs.
I modify the command provided on the readytowear GitHub page as below:
qiime feature-classifier fit-classifier-naive-bayes \
–i-reference-reads silva-138-99-full_seqs-v3v4-seqs.qza \
–i-reference-taxonomy readytowear/data/silva_138/full_length/ref-tax.qza \
–i-class-weight readytowear/data/silva_138/full_length/animal-distal-gut.qza \
--o-classifier silva-138-99-full_seqs-v3v4-seqs-animal-distal-gut.qza
The following error message occurs:
Number of priors must match number of classes.
Does this mean I have to make my filter to make the taxonomy classes identical in both files(silva-138-99-full_seqs-v3v4-seqs.qza&animal-distal-gut.qza)?
Is that right?
ps.The version of Qiime which I use is qiime2-2020.11