Hi qiime team,
I have this strange error where a table that used to work years ago no longer works and the only explanation I can think of (my guess anyway) is there are special characters that are in the sampleIDs.
Anyway when trying to run a simple table summarize command
qiime feature-table summarize
--i-table merged_table_Jun2_GMTOL.qza
--o-visualization merged_table_Jun2_GMTOL_summary.qzv
Plugin error from feature-table:
'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)
Debug info has been saved to /var/folders/l5/bc59br8961516ssfthb0x16h0000gn/T/qiime2-q2cli-err-lft3_8zr.log
I get that. And the readout of that log file is:
cat /var/folders/l5/bc59br8961516ssfthb0x16h0000gn/T/qiime2-q2cli-err-lft3_8zr.log
Traceback (most recent call last):
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/q2cli/commands.py", line 478, in call
results = self._execute_action(
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/q2cli/commands.py", line 539, in _execute_action
results = action(**arguments)
File "", line 2, in summarize
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/qiime2/sdk/action.py", line 339, in bound_callable
self.signature.transform_and_add_callable_args_to_prov(
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/qiime2/core/type/signature.py", line 390, in transform_and_add_callable_args_to_prov
self._transform_and_add_input_to_prov(
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/qiime2/core/type/signature.py", line 423, in _transform_and_add_input_to_prov
transformed_input = _input._view(spec.view_type, recorder)
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/qiime2/sdk/result.py", line 401, in _view
result = transformation(self._archiver.data_dir)
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/qiime2/core/transform.py", line 70, in transformation
new_view = transformer(view)
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/qiime2/core/transform.py", line 214, in wrapped
return transformer(view.file.view(self._wrapped_view_type))
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/q2_types/feature_table/_transformer.py", line 108, in _5
return _parse_biom_table_v210(ff)
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/q2_types/feature_table/_transformer.py", line 52, in _parse_biom_table_v210
table = biom.Table.from_hdf5(fh)
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/biom/table.py", line 4149, in from_hdf5
samp_ids, samp_md, samp_grp_md = axis_load(h5grp['sample'])
File "/Users/samde/miniconda3/envs/qiime2-2023.7/lib/python3.8/site-packages/biom/table.py", line 4123, in axis_load
ids = np.asarray(ids, dtype=ids_dtype)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)
The one problem is that I cannot even export this table out as a tsv file. I tried in qiime2 2023.7 and 2025.7 with no avail. Exporting to biom works but then exporting to tsv gives the âis not a biom file!â error.
Is there any other kind of workaround to edit a qza or biom file to get rid of the special characters? Or am I wrong and the problem is something else?
Any info would be appreciated!
Biom file is 21MB so leaving a gdrive link if this is needed: https://drive.google.com/file/d/114DgBBHYLLCKJ0hLGXr6zLMAfkpoZwMi/view?usp=sharing