biom add-metadata: exporting feature table with taxonomy included

Hi all, I am trying to export my feature table along with the taxonomy with the following command:

biom add-metadata \
   -i deblur_output_exported/feature-table.biom \
   -o deblur_output_exported/feature-table_w_tax.biom \
   --observation-metadata-fp taxa/taxonomy.tsv \
   --sc-separated taxonomy

and when I run it, I get the following:

Traceback (most recent call last):
File "/home/kari/anaconda3/envs/qiime2-2022.2/bin/biom", line 11, in
sys.exit(cli())
File "/home/kari/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/kari/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/kari/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/kari/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/kari/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/kari/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/biom/cli/metadata_adder.py", line 105, in add_metadata
result = _add_metadata(table, sample_metadata_f, observation_metadata_f,
File "/home/kari/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/biom/cli/metadata_adder.py", line 171, in _add_metadata
observation_metadata = MetadataMap.from_file(
File "/home/kari/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/biom/parse.py", line 538, in from_file
raise BiomParseException("No header line was found in mapping "
biom.exception.BiomParseException: No header line was found in mapping file.

Please help and thank you for this space :smiley:

already solved!!!!, thanks to another forum

1 Like