# Error importing BIOM table from RiboTagger

**URL:** <https://forum.qiime2.org/t/error-importing-biom-table-from-ribotagger/10364>\
**Category:** Technical Support\
**Tags:** import\
**Created:** [June 21, 2019, 3:15pm UTC](https://forum.qiime2.org/t/error-importing-biom-table-from-ribotagger/10364 "2019-06-21T15:15:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/p/b2d939/32.png) [@Patrick](https://forum.qiime2.org/u/Patrick)\
**Post date:** [June 21, 2019, 3:15pm UTC](https://forum.qiime2.org/t/error-importing-biom-table-from-ribotagger/10364/1 "2019-06-21T15:15:23Z")

</div>

I am trying to import a BIOM table from RiboTagger into Qiime2 as a .qza frequency table for OTU clustering. I am running qiime2-2019.4 in a conda environment on a HPC cluster.

I am following the instructions at,  
[https://docs.qiime2.org/2019.4/tutorials/importing/#feature-table-data](https://docs.qiime2.org/2019.4/tutorials/importing/#feature-table-data)  
but I get an error which is not very clear to me when I run the command.

```bash
(qiime2-2019.4) [prhr3@login-s2 ribotagger]$ qiime tools import --input-path Amplicon_and_Metagenome_V4.biom --type 'FeatureTable[Frequency]' --input-format BIOMV100Format --output-path feature-table-2.qza

Traceback (most recent call last):
  File "/nv/hmicro1/prhr3/data/software/pkg/miniconda3/envs/qiime2-2019.4/lib/python3.6/site-packages/q2cli/builtin/tools.py", line 152, in import_data
    view_type=input_format)
  File "/nv/hmicro1/prhr3/data/software/pkg/miniconda3/envs/qiime2-2019.4/lib/python3.6/site-packages/qiime2/sdk/result.py", line 240, in import_data
    return cls._from_view(type_, view, view_type, provenance_capture)
  File "/nv/hmicro1/prhr3/data/software/pkg/miniconda3/envs/qiime2-2019.4/lib/python3.6/site-packages/qiime2/sdk/result.py", line 265, in _from_view
    result = transformation(view)
  File "/nv/hmicro1/prhr3/data/software/pkg/miniconda3/envs/qiime2-2019.4/lib/python3.6/site-packages/qiime2/core/transform.py", line 70, in transformation
    new_view = transformer(view)
  File "/nv/hmicro1/prhr3/data/software/pkg/miniconda3/envs/qiime2-2019.4/lib/python3.6/site-packages/qiime2/core/transform.py", line 220, in wrapped
    file_view = transformer(view)
  File "/nv/hmicro1/prhr3/data/software/pkg/miniconda3/envs/qiime2-2019.4/lib/python3.6/site-packages/q2_types/feature_table/_transformer.py", line 141, in _8
    data = _parse_biom_table_v100(ff)
  File "/nv/hmicro1/prhr3/data/software/pkg/miniconda3/envs/qiime2-2019.4/lib/python3.6/site-packages/q2_types/feature_table/_transformer.py", line 46, in _parse_biom_table_v100
    table = biom.Table.from_json(json.load(fh))
  File "/nv/hmicro1/prhr3/data/software/pkg/miniconda3/envs/qiime2-2019.4/lib/python3.6/site-packages/biom/table.py", line 4423, in from_json
    generated_by=json_table['generated_by'],
KeyError: 'generated_by'

An unexpected error has occurred:

  'generated_by'

See above for debug info.

```

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 21, 2019, 9:36pm UTC](https://forum.qiime2.org/t/error-importing-biom-table-from-ribotagger/10364/2 "2019-06-21T21:36:26Z")

</div>

Assigned @thermokarst on June 21, 2019, 9:36pm UTC



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 21, 2019, 9:38pm UTC](https://forum.qiime2.org/t/error-importing-biom-table-from-ribotagger/10364/3 "2019-06-21T21:38:38Z")

</div>

Looks like the BIOM file being generated by RiboTagger isn't quite a BIOM V1.0.0 format table. Maybe you could use the `biom` cli tool to [convert](http://biom-format.org/documentation/biom_conversion.html) to a V2.1.0 file, then [import that](https://docs.qiime2.org/2019.4/tutorials/importing/#biom-v2-1-0)?

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 21, 2019, 9:38pm UTC](https://forum.qiime2.org/t/error-importing-biom-table-from-ribotagger/10364/4 "2019-06-21T21:38:40Z")

</div>

Unassigned @thermokarst on June 21, 2019, 9:38pm UTC


