# Internal Bowtie 2 exception (#1) Error Downloading Biobakery\_workflows reference databases

**URL:** <https://forum.biobakery.org/t/internal-bowtie-2-exception-1-error-downloading-biobakery-workflows-reference-databases/3937>\
**Category:** bioBakery workflows\
**Created:** [August 10, 2022, 10:44pm UTC](https://forum.biobakery.org/t/internal-bowtie-2-exception-1-error-downloading-biobakery-workflows-reference-databases/3937 "2022-08-10T22:44:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fquerdasi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fquerdasi/32/927_2.png) [@fquerdasi](https://forum.biobakery.org/u/fquerdasi)\
**Post date:** [August 10, 2022, 10:44pm UTC](https://forum.biobakery.org/t/internal-bowtie-2-exception-1-error-downloading-biobakery-workflows-reference-databases/3937/1 "2022-08-10T22:44:59Z")

</div>

Hi,

My goal is to download biobakery workflows reference demo databases used in the tutorial.

Upon first running the command: `biobakery_workflows_databases --install wmgx_demo`, I received the error: “Encountered internal Bowtie 2 exception (#1)”. I followed the steps suggested in the last reply at the bottom of this [post](https://forum.biobakery.org/t/error-installing-wmgx-biobakery-workflows-databases-install-wmgx/2431/5), namely:

1. creating a new conda environment with python 3.7
2. installing tbb version 2020.2, bioconda, and metaphlan in that environment
3. Upon running the original command to install the biobakery workflow reference databases, I encountered a new error: ModuleNotFoundError: no module named ‘leveldb’
4. To solve that, I installed python-leveldb into my environment as well
5. In the end, I continue to get the same Bowtie 2 exception error as before.

Upon looking in the directory where it is reported to be looking for the database, I discovered that I have files which start with: “mpa\_v31\_CHOCOPhlan\_201901” whereas the program is looking for files starting with “mpa\_v30\_CHOCOPhlan\_201901”.

If that is indeed the case and biobakery workflows is expecting an older version of chocophlan, where can I obtain that file?

Thank you for your help!

Best,  
Fran

---

<div class="post-metadata">

**Author:** ![fquerdasi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fquerdasi/32/927_2.png) [@fquerdasi](https://forum.biobakery.org/u/fquerdasi)\
**Post date:** [August 11, 2022, 1:15am UTC](https://forum.biobakery.org/t/internal-bowtie-2-exception-1-error-downloading-biobakery-workflows-reference-databases/3937/2 "2022-08-11T01:15:55Z")

</div>

I was able to solve this issue by running the following: `metaphlan --install --index mpa_v30_CHOCOPhlAn_201901 --bowtie2db <default path>`,

But I have now received this error: `FileNotFoundError: [Errno 2] No such file or directory: '/Users/../../biobakery_workflows/data/../../tutorial/kneaddata_demo_db/Homo_sapiens_demo'`

---

<div class="post-metadata">

**Author:** ![hilasha2](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/hilasha2/32/947_2.png) [@hilasha2](https://forum.biobakery.org/u/hilasha2)\
**Post date:** [August 14, 2022, 2:33pm UTC](https://forum.biobakery.org/t/internal-bowtie-2-exception-1-error-downloading-biobakery-workflows-reference-databases/3937/3 "2022-08-14T14:33:20Z")

</div>

I don’t know whether it would solve it or not, but perhaps running biobakery\_worfklows wmgx with the following argument would help:

```auto
--taxonomic-profiling-options="--bowtie2db=[PATH/TO/CHOCOPHLAN]" 

```

for example this is my command:

> biobakery\_workflows wmgx --input /path/to/input/dir --output /path/to/output/dir --qc-options=“–trimmomatic ~/miniconda3/envs/[CONDA ENV]/share/trimmomatic-0.39-2/ --reference-db /path/to/kneaddata\_db/human\_genome\_bowtie2 --remove-intermediate-output” --local-jobs 3 --threads 10 --taxonomic-profiling-options="–bowtie2db=/path/to/metaphlan\_db/v30 " --bypass-strain-profiling --pair-identifier \_R1 --remove-intermediate-output

---

<div class="post-metadata">

**Author:** ![fquerdasi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fquerdasi/32/927_2.png) [@fquerdasi](https://forum.biobakery.org/u/fquerdasi)\
**Post date:** [August 15, 2022, 11:01pm UTC](https://forum.biobakery.org/t/internal-bowtie-2-exception-1-error-downloading-biobakery-workflows-reference-databases/3937/4 "2022-08-15T23:01:12Z")

</div>

Hi hilasha2,

Thanks for your suggestion. Unfortunately, it does not work, as I am running the command (biobakery\_workflows\_databases) to install the biobakery workflows databases, whereas the command you’re referring to is to run biobakery workflows. My understanding is that the command I am running will install the reference databases, which your command points to (i.e., I need to obtain a path to those by installing them first).

---

<div class="post-metadata">

**Author:** ![hilasha2](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/hilasha2/32/947_2.png) [@hilasha2](https://forum.biobakery.org/u/hilasha2)\
**Post date:** [August 16, 2022, 12:19pm UTC](https://forum.biobakery.org/t/internal-bowtie-2-exception-1-error-downloading-biobakery-workflows-reference-databases/3937/5 "2022-08-16T12:19:13Z")

</div>

Ah, then perhaps the solution is easier, these are the data locations and you can download them manually:  
MetaPhlAn’s databases:  
http://cmprod1.cibio.unitn.it/biobakery3/metaphlan\_databases/  
Download everything that’s related to a certain version and put in a folder.  
Reference to the folder using the `--bowtie2db` argument in metaphlan’s options when running metaphlan/a biobakery workflow.  
You can also specify which version of database to use when running a workflow/metaphlan using the argument --index (again, metaphlan’s options). For example: `--index=mpa_v30_CHOCOPhlAn_201901`, so a new version won’t download automatically.

You can also try and install the markers’ DB using the command:

> metaphlan --install --bowtie2db [LOCATION YOU WANT TO DOWNLOAD TO]

HUMAnN’s databases:  
http://huttenhower.sph.harvard.edu/humann\_data/  
Download the nucleotide DB ChocoPhlAn, the protein DB UniRef and utility mapping that match the version of the DB of the MetaPhlAn you have downloaded.  
You can also use the command:

> humann\_databases --download [Additional arguments]

Update the location of the DBs you have downloaded using the `humann_config --update` command.
