Hi, I have the same problem and I can’t add the taxonomy annotations to my biom table. I’ve also checked with tab spacing and everything seemed to be correct. Is it possible that someone help me out to figure out what the problem is? Thank you!
Here is are my commands:
qiime tools export deblur/table-deblur.qza \ --output-dir export
qiime tools export training-feature-classifiers/gg/taxonomy-paired.qza \ --output-dir export
cp export/taxonomy.tsv biom-taxonomy.tsv
head biom-taxonomy.tsv
This is how feature-table.biom looked like:
#Constructed from biom file
#OTU ID HC10-4 CH2-4 CH6-4 C2-5 HH10-1
f89343226e4d4a8166bb99f335d45d77 1672.0 85.0 697.0 987.0 511.0
6b96f56460b1b14bbb85035f0e0c3765 1482.0 7.0 3.0 0.0 0.0
And how biom-taxonomy.tsv looked like:
Feature ID Taxon Confidence
08b37fba93c15e5afc094ecbec3618c9 k__Bacteria 0.9997068523760535
d3a0509a959aca6a01f75ea020ca770d k__Bacteria; p__Proteobacteria; c__Deltaproteobacteria; o__; f__; g__; s__ 0.9271634287508872
Then I changed the first line of the biom-taxonomy.tsv to #OTUID taxonomy confidence, and it looked it:
#OTUID taxonomy confidence
08b37fba93c15e5afc094ecbec3618c9 k__Bacteria 0.9997068523760535
d3a0509a959aca6a01f75ea020ca770d k__Bacteria; p__Proteobacteria; c__Deltaproteobacteria; o__; f__; g__; s__ 0.9271634287508872
When I ran this command, head biom-taxonomy.tsv | od -c, to check for tabs, it looked like:
0000000 # O T U I D \t t a x o n o m y \t
0000020 c o n f i d e n c e \n 0 8 b 3 7
0000040 f b a 9 3 c 1 5 e 5 a f c 0 9 4
Then I added the taxonomy data to my biom file:
biom add-metadata -i export/feature-table.biom -o table-with-taxonomy.biom --observation-metadata-fp biom-taxonomy.tsv --sc-separated taxonomy
biom convert -i table-with-taxonomy.biom -o table-with-taxonomy.tsv --to-tsv
biom head -i table-with-taxonomy.tsv
And table-with-taxonomy.tsv looked something like this (exactly like the feature-table.tsv with no taxonomy)
#Constructed from biom file
#OTU ID HC10-4 CH2-4 CH6-4 C2-5 HH10-1 CC6-2 CC10-1 CC2-4 HC6-3 C10-2 H6-3 f89343226e4d4a8166bb99f335d45d77 1672.0 85.0 697.0 987.0 511.0 2279.0 882.0 1251.0 531.0 1212.0 502.0
I really can’t figure what went wrong. It’l be great if someone could help. Thank you so much!