I’ve been trying to use the make.biom() command to convert my shared file into a biom file. It works fine, but if I try to add a taxonomy file it gives me an error. The exact commands I’m running are (I have the standard fasta, names, groups, and taxonomy files as per the SOP):
However, the example files for the consensus taxonomy on the website look like this (final.tx.1.cons.taxonomy):
OTU Size Taxonomy
1 29357 Bacteria(100);“Bacteroidetes”(100);“Bacteroidia”(100);“Bacteroidales”(100);“Porphyromonadaceae”(100);unclassified(100);
2 2223 Bacteria(100);“Bacteroidetes”(100);“Bacteroidia”(100);“Bacteroidales”(100);“Rikenellaceae”(100);Alistipes(100);
3 3211 Bacteria(100);“Bacteroidetes”(100);“Bacteroidia”(100);“Bacteroidales”(100);unclassified(100);unclassified(100);
4 4646 Bacteria(100);“Firmicutes”(100);“Clostridia”(100);Clostridiales(100);unclassified(100);unclassified(100);
The problem seems to be that mothur isn’t expecting the Otu0001 in the consensus taxonomy file, and instead wants either 1 or 0001 for the first OTU.
So, an easy work-around is this: If you just open your consensus taxonomy file in a text editor and remove all leading Otu labels (e.g. Otu0001, Otu0002, Otu0003 change to 0001, 0002, 0003 or 1, 2, 3) and re-run make.biom it works just fine with the corrected consensus taxonomy file.