Convert collapsed-table to tsv

Hello, this is the first time of using QIIME to analysis DATA. Now after assign taxonomy, I tried to make a table to review by following codes.

qiime taxa collapse --i-table table.qza --i-taxonomy taxonomy.qza --p-level 7 --o-collapsed-table feature-table-class.qza

While converting to tsv,by the following codes
biom convert -i feature-table-class.qza -o table.tsv --to-tsv

The below error shows up:
Traceback (most recent call last):
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/bin/biom", line 11, in
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/site-packages/click/", line 829, in call
return self.main(*args, **kwargs)
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/site-packages/click/", line 782, in main
rv = self.invoke(ctx)
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/site-packages/click/", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/site-packages/click/", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/site-packages/click/", line 610, in invoke
return callback(*args, **kwargs)
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/site-packages/biom/cli/", line 114, in convert
table = load_table(input_fp)
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/site-packages/biom/", line 672, in load_table
table = parse_biom_table(fp)
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/site-packages/biom/", line 406, in parse_biom_table
c =
File "/home/zhaox0b/.conda/envs/qiime2-2022.2/lib/python3.8/", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 12: invalid start byte

Could you please advise where went wrong?

Thanks a lot

Hello again!
To perform this action, you need to export your feature table as a biom table first, and then convert a biom file to tsv.

Hi Timur, yes, solved again. Thanks a lot.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.