Hi everyone, I am running qiime2 on macOS Catalina and have a question regarding biom tables. I have a JSON formatted table and ran the below script to filter out certain samples. After doing this, it changes format to HDF and I’m trying to figure out how to get it back into JSON. Is there an option I can pass this script or another way I can convert this table? I tried the biom-convert function, also below, but receive an error I don’t understand. Thanks
qiime feature-table filter-samples --i-table feature_table.qza --m-metadata-file RISK_metadata_no_mixed.txt --p-where “[Diagnosis]=‘CD’” --o-filtered-table CD-filtered-table.qza
biom convert -i CD-filtered-table.qza -o CD-filtered-table-JSON.biom --to-json
Traceback (most recent call last):
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/bin/biom”, line 11, in
sys.exit(cli())
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/biom/cli/table_converter.py”, line 114, in convert
table = load_table(input_fp)
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/biom/parse.py”, line 660, in load_table
table = parse_biom_table(fp)
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/biom/parse.py”, line 403, in parse_biom_table
c = fp.read(1)
File “/Users/rajeshshah/miniconda3/envs/qiime2-2019.7/lib/python3.6/codecs.py”, line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x93 in position 11: invalid start byte