# Import error rising from new BugBase metadata requirements

**URL:** <https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584>\
**Category:** Other Bioinformatics Tools\
**Tags:** bugbase\
**Created:** [November 21, 2019, 10:21am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584 "2019-11-21T10:21:32Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [November 21, 2019, 10:21am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/1 "2019-11-21T10:21:32Z")

</div>

Hi, @Mehrbod_Estaki,

I wanted to thank you for your tutorial ([GitHub - mestaki/qiime2-to-BugBase · GitHub](https://github.com/mestaki/qiime2-to-BugBase)), since I'm trying to use Bugbase for some time.  
Firstly I tried this summer following their Documentation, and unsuccessfully.  
Today I've tried your tutorial to the letter, it generated all the files quickly and without problems but still when I upload them to the web app of Bugbase I get this message: There was an error while parsing your data. Please ensure your OTU and mapping files follow the format explained in the documentation. OTU tables must be the json version of biom.  
I'm at my wits end.

I'm using qiime2-2019.4 version, macOS Mojave.  
This is how my feature-table-tax-biom1.biom looks like in text editor:

 ![39](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/f/fae585ced7d5ffb9d513657b9320b2fe4ddcd8ef.png)

This is how my metadata.txt looks like:

![38](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/e/eb64c6cd24203e3850eb32bfc61bef14db352e9e.png)

Any suggestion would be helpful...

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [November 21, 2019, 10:37am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/2 "2019-11-21T10:37:52Z")

</div>

Hi @anamarija,  
Glad that little tutorial is finally getting some use 😛  
The first thing that sticks out to me is your metadata first column name `#SampleID`. There is a note in my tutorial regarding this:

> You will have to manually rename the first column to `sample-id` as per BugBase’s requirement.

Can you rename that and try again?

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [November 21, 2019, 11:01am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/3 "2019-11-21T11:01:53Z")

</div>

> [@Creating a BugBase/PICRUSt compatible OTU table within QIIME2](https://forum.qiime2.org/t/creating-a-bugbase-picrust-compatible-otu-table-within-qiime2/7145/4):
>
> sample-id

Hi, thank for extra fast reply!  
I changed it, but it seems there is a problem with biom file, because when I upload it without metadata it still gets the same error. I also tried with your data from the tutorial, but have the same issue.

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [November 21, 2019, 11:05am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/4 "2019-11-21T11:05:14Z")

</div>

Could it be that is too big file: 328 KB?

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [November 21, 2019, 11:14am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/5 "2019-11-21T11:14:21Z")

</div>

Sorry for multiple answers, but I was finally successful with your data, but only if I don't add mapping file (even with "sample-id" change).

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [November 21, 2019, 11:36am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/6 "2019-11-21T11:36:43Z")

</div>

HI @anamarija,  
Thanks for the update. What did you do different this time that it worked, albeit without the metadata?

It appears that the BugBase documentations has changed a bit since last I made that tutorial. In fact the first header now is required to be `#SampleID` instead, not `sample-id` as my tutorial says.  
The fact that this works for you but only without the metadata file suggests that there is some special character or formatting issue that does not meet their requirements. I would carefully check their requirements again. Take extra care looking for hidden characters/spaces if your metadata file was used something like excel.

```auto
Be a tab-delimited text file
Have sample IDs in the first column
Have column headers in the first row
Have #SampleID as the first header
Contain only letters, numbers, underscores and hyphens
Not contain spaces, commas or quotes
Never contain confidential information

```

I'll try and update my tutorial whenever I get some free time.

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [November 21, 2019, 12:27pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/7 "2019-11-21T12:27:51Z")

</div>

Hi, I did everything the same, that is what is confusing... The only difference is in the file size, but that shouldn't be an issue (their Documentation said: \< 15 mb (web application only)). I've tried to analyze only half my data, result is the same.  
Thanks anyway for your time. 🙂

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [November 21, 2019, 12:43pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/8 "2019-11-21T12:43:37Z")

</div>

Btw, I was successful with your data after I changed in mapping file #SampleID and put underscores in spaces e.g. left\_plam, right\_palm.

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [November 21, 2019, 1:19pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/9 "2019-11-21T13:19:17Z")

</div>

Aha! That would explain it then, those must be the newer requirements added to BugBase. I'll make sure to account for those in the updated version of my tutorial 👍

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [November 21, 2019, 2:56pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/12 "2019-11-21T14:56:34Z")

</div>

I finally found out what the problem was (although it shouldn't be)!  
So, the only difference between your and my data was that I picked OTUs at 99 identity level, and your's were at 97. So I got back, picked them at 97 and it worked perfectly!  
I really don't know why, but it must be something to do with 99.otus.fasta or 99\_taxonomy, because I tried it 5 times... Anyway, hope this will be helpful to somebody 😃

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [November 28, 2019, 10:43am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/13 "2019-11-28T10:43:47Z")

</div>

Hi @anamarija,  
I just went over the tutorial again and was successful on some new data clustering at 99% identity asyou did. The only change I had to make was to my mapping file (as mentioned above `sample-id` -\> `#SampleID). Did you by chance use the 99\_otus.fasta reference database with the 97% taxonomy? Because that would certainly throw an error, you would have to use matching otus/taxonomy. What % identity you use for clustering shouldn't cause any errors.

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [December 5, 2019, 11:20am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/14 "2019-12-05T11:20:17Z")

</div>

Hi @Mehrbod_Estaki, sorry for the delay in answering. I agree that it shouldn't cause errors, so I'll try to do 99% identity again soon to check if the mistake is mine. Get back to you with that 🙂

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [December 10, 2019, 3:29pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/15 "2019-12-10T15:29:45Z")

</div>

Hi, just wanted to say that I've run 99% identity in Bugbase and it worked. Don't know what the issue was before, but now it works. So everything you did in your tutorial works. Thanks again 😃

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [December 10, 2019, 11:32pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/16 "2019-12-10T23:32:50Z")

</div>

Thanks for the update @anamarija. I believe your issue was that in your first attempt you perhaps used 99% OTUs file but with 97% taxonomy file. The mismatch there would certainly cause issues. You always want to make sure you use the corresponding OTUs and taxonomy files. Glad it's all cleared up.

---

<div class="post-metadata">

**Author:** ![anamarija](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anamarija/32/8524_2.png) [@anamarija](https://forum.qiime2.org/u/anamarija)\
**Post date:** [December 11, 2019, 12:34pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/17 "2019-12-11T12:34:46Z")

</div>

Actually, I think the problem was that I accidentally used 99% otus file from the rep\_set\_aligned folder...has the same file name. When I did 97% I didn't make that mistake, so it worked.  
Thanks again 🙂

---

<div class="post-metadata">

**Author:** ![arlandan](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/8baadc/32.png) [@arlandan](https://forum.qiime2.org/u/arlandan)\
**Post date:** [September 29, 2020, 3:58pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/18 "2020-09-29T15:58:40Z")

</div>

Thanks @anamarija for your post.

Hi @Mehrbod_Estaki,  
thank you for sharing your protocol. It worked well for me. I have one more question. The OTU table that BugBase requires has to be picked against greengenes databse (16s). And the OTU table prepared in your way contains OTUID (first column), taxonomy (last columns), and the rest of the columns are feature frequency data fro each sample. Would you think a biom (json) file with only taxonomy column and sample feature frequency data (line the following) work? Thank you!

 ![Screen Shot 2020-09-29 at 10.57.39 AM](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/b/bd7b0737c18423da6e2e82886919b9404eb2e4fe.png)

Best.

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [September 29, 2020, 7:22pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/19 "2020-09-29T19:22:13Z")

</div>

Hi @arlandan,  
I'm not sure to be honest. You could always try!  
But basically, BugBase expects Greengenes taxonomic names in order to infer traits, and it specifically looks for the `taxonomy` column for that info. So if your biom table has that, I'm guessing it would be ok. Try it and if it doesn't work then we at least have a starting point for trouble-shooting.

Sorry couldn't be of any more help.

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [January 14, 2022, 8:40pm UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/20 "2022-01-14T20:40:04Z")

</div>

An off-topic reply has been split into a new topic: [Issues with the Qiime2BugBase worflow](https://forum.qiime2.org/t/issues-with-the-qiime2bugbase-worflow/21886)

Please keep replies on-topic in the future.

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [April 22, 2022, 5:51am UTC](https://forum.qiime2.org/t/import-error-rising-from-new-bugbase-metadata-requirements/12584/21 "2022-04-22T05:51:46Z")

</div>

An off-topic reply has been split into a new topic: [BugBase web not accepting Q2 sample metadata file](https://forum.qiime2.org/t/bugbase-web-not-accepting-q2-sample-metadata-file/22844)

Please keep replies on-topic in the future.
