# Unable to use the WAALFE database

**URL:** <https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504>\
**Category:** WAAFLE\
**Created:** [August 25, 2021, 6:03pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504 "2021-08-25T18:03:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Microbiomarisol](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/microbiomarisol/32/981_2.png) [@Microbiomarisol](https://forum.biobakery.org/u/Microbiomarisol)\
**Post date:** [August 25, 2021, 6:03pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/1 "2021-08-25T18:03:39Z")

</div>

Hi there!

I’m trying to use WAAFLE to analyse metagenomes. I successfully downloaded all the package requirements for the software and downloaded the actual software. I also successfully downloaded the database and unzipped it. However, the syntax to USE the database (as printed below) did not produce the output file.

$ waafle\_search contigs.fna waafledb/waafledb

When I cd’d into the waafledb directory, I found there was no single file named “waffledb” as listed above. Instead I found a series of files with file extensions .nhr, .nsq., and .nin. Was the database not configured correctly?

Thanks in advance,  
Dottie

---

<div class="post-metadata">

**Author:** ![franzosa](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/franzosa/32/3511_2.png) [@franzosa](https://forum.biobakery.org/u/franzosa)\
**Post date:** [August 30, 2021, 9:43pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/2 "2021-08-30T21:43:30Z")

</div>

That all looks fine to me - what you are providing with the second argument (`waafledb/waafledb`) is the root name of the BLAST database files, i.e. the three files you named above. Did the command above produce any output to the screen (errors etc.)?

---

<div class="post-metadata">

**Author:** ![Microbiomarisol](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/microbiomarisol/32/981_2.png) [@Microbiomarisol](https://forum.biobakery.org/u/Microbiomarisol)\
**Post date:** [August 31, 2021, 10:17pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/3 "2021-08-31T22:17:08Z")

</div>

Here was the output, which is why I was wondering if maybe something wasn’t configuring properly:

(waafle\_env) marisolortiz@Marisols-MacBook-Pro ISS % waafle\_search F4\_1S\_S21\_contigs.blastout /Users/marisolortiz/waafledb/waafledb

Executing command: blastn -query F4\_1S\_S21\_contigs.blastout -db /Users/marisolortiz/waafledb/waafledb -out ./F4\_1S\_S21\_contigs.blastout -max\_target\_seqs 10000 -num\_threads 1 -outfmt ‘6 qseqid sseqid qlen slen length qstart qend sstart send pident positive gaps evalue bitscore sstrand’

BLAST Database error: No alias or index file found for nucleotide database [/Users/marisolortiz/waafledb/waafledb] in search path [/Users/marisolortiz/Desktop/ISS::]

Finished successfully.

Any thoughts? Thanks so much for replying!

---

<div class="post-metadata">

**Author:** ![franzosa](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/franzosa/32/3511_2.png) [@franzosa](https://forum.biobakery.org/u/franzosa)\
**Post date:** [August 31, 2021, 10:56pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/4 "2021-08-31T22:56:23Z")

</div>

Huh, that looks correct. To confirm, the individual database files live at…

`/Users/marisolortiz/waafledb/waafledb.nhr`

And so forth?

The other thing I noted is that your queries here are called `F4_1S_S21_contigs.blastout`, but I would expect them to be a FASTA file (like `F4_1S_S21_contigs.fasta`). I don’t think that’s the cause of this specific issue though.

---

<div class="post-metadata">

**Author:** ![Microbiomarisol](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/microbiomarisol/32/981_2.png) [@Microbiomarisol](https://forum.biobakery.org/u/Microbiomarisol)\
**Post date:** [August 31, 2021, 11:22pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/5 "2021-08-31T23:22:19Z")

</div>

That is where the files live! And I have tried using specific file names within that directory just to see if maybe something was missing from the tutorial. Any suggestions on what I might try? OR if I might be so bold and you have the time I could send you my email and we could briefly zoom about it? I could just be making some other mistake/maybe I didn’t download the dependencies appropriately?

With regards to the files I am using, I am trying to use a file of metagenomes. Is that not appropriate?

So many questions!

Dottie

---

<div class="post-metadata">

**Author:** ![franzosa](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/franzosa/32/3511_2.png) [@franzosa](https://forum.biobakery.org/u/franzosa)\
**Post date:** [September 3, 2021, 9:37pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/6 "2021-09-03T21:37:25Z")

</div>

I double-checked and the syntax you are using is correct - i.e. you want to provide the “root name” of the database files, of which there should be three. Is it possible that the database files didn’t download/unpack correctly?

The input to the first step of WAAFLE should be a FASTA file containing metagenomic _contigs_. You can compare your input file with the demo input file to make sure it is formatted similarly.

---

<div class="post-metadata">

**Author:** ![Dhrati\_Patangia](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/dhrati_patangia/32/786_2.png) [@Dhrati\_Patangia](https://forum.biobakery.org/u/Dhrati_Patangia)\
**Post date:** [September 13, 2021, 1:51pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/7 "2021-09-13T13:51:37Z")

</div>

Hi @franzosa  
I have the same issue while using waafle. The database if downloaded and all 16 files waafledb.00.nhr,.nin, .nsq and same for 02,03,04 and waafledb.nal are present at /data/databases/waffle/waafledb. Similarly a .tar file and tsv file are present in the waffle folder mentioned here.

I tried using the following command from my working directory where the contig file is present:  
waafle\_search Run1\_S2.contigs.fa /data/databases/waffle/waafledb

It ends up with the same error:  
Executing command: blastn -query Run1\_S1.contigs\_shortheader.fa -db /data/databases/waffle/waafledb -out ./Run1\_S1.blastout -max\_target\_seqs 10000 -num\_threads 1 -outfmt ‘6 qseqid sseqid qlen slen length qstart qend sstart send pident positive gaps evalue bitscore sstrand’  
BLAST Database error: No alias or index file found for nucleotide database [/data/databases/waffle/waafledb] in search path [/working/dir/path/waafle::]  
Finished successfully.

Any help would be appreciated.

Thank you  
DP

---

<div class="post-metadata">

**Author:** ![franzosa](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/franzosa/32/3511_2.png) [@franzosa](https://forum.biobakery.org/u/franzosa)\
**Post date:** [September 16, 2021, 4:05pm UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/8 "2021-09-16T16:05:26Z")

</div>

If all of the `waafledb` files live in the following folder:

`/data/databases/waffle/waafledb`

Then the command you want is:

`waafle_search Run1_S2.contigs.fa /data/databases/waffle/waafledb/waafledb`

Noting the **additional** `waafledb` at the end of the above path. You are trying to point BLAST at the “basename” of all the database files (i.e. the name minus any file extensions), rather than the folder that contains those files. Sorry for the confusion!

---

<div class="post-metadata">

**Author:** ![Dhrati\_Patangia](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/dhrati_patangia/32/786_2.png) [@Dhrati\_Patangia](https://forum.biobakery.org/u/Dhrati_Patangia)\
**Post date:** [September 21, 2021, 10:59am UTC](https://forum.biobakery.org/t/unable-to-use-the-waalfe-database/2504/9 "2021-09-21T10:59:56Z")

</div>

@franzosa  
Thank you very much, it worked well this way.  
Thank you  
DP
