# Classify.seqs Generating search database... takes forever

**URL:** <https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493>\
**Category:** mothur bugs\
**Created:** [May 5, 2020, 4:44pm UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493 "2020-05-05T16:44:06Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![YanSun](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@YanSun](https://forum.mothur.org/u/YanSun)\
**Post date:** [May 5, 2020, 4:44pm UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/1 "2020-05-05T16:44:06Z")

</div>

Hi,  
I have used the reference file SILVA\_132\_LSURef\_tax\_silva\_trunc.fasta (593 318 kb), and taxonomy file taxmap\_slv\_lsu\_ref\_132.txt (27 175 kb), to classify my sequences (processed successfully using mothur until this step), but the run stayed forever at

Using 8 processors.  
Generating search database…

What could be the reason? Are the files too big? I tried to use get.lineage to pick the taxa of interest (Eukaryota-Bacteria; Cyanobateria), but the pick was only successful in the taxonomy file. I searched throughout the fasta file and there were these taxa. There was no use by deleting the “\>” symbol in the fasta file either.

---

<div class="post-metadata">

**Author:** ![leocadio](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/leocadio/32/203_2.png) [@leocadio](https://forum.mothur.org/u/leocadio)\
**Post date:** [May 7, 2020, 12:09am UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/2 "2020-05-07T00:09:41Z")

</div>

what platform (OS) are you using? I had that problem once with redhat and I was just calling several times the same process instead of distributing it…

Deleting the “\>”? Why?

---

<div class="post-metadata">

**Author:** ![YanSun](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@YanSun](https://forum.mothur.org/u/YanSun)\
**Post date:** [May 7, 2020, 6:12am UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/3 "2020-05-07T06:12:10Z")

</div>

I tried 1.41.3 and 1.42.3, neither worked.

One earlier problem I came across was something like:

ACD298849847 found in the template and is not found in the taxonomy file

Some answer from the mothur forum suggested to remove “\>”

After I removed “\>”, there came the problem that is the one I posted here.

---

<div class="post-metadata">

**Author:** ![YanSun](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@YanSun](https://forum.mothur.org/u/YanSun)\
**Post date:** [May 7, 2020, 6:16am UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/4 "2020-05-07T06:16:05Z")

</div>

Forgot to mention that I’m using windows 10.

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [May 7, 2020, 5:13pm UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/5 "2020-05-07T17:13:45Z")

</div>

Can you try to upgrade to the most recent version of mothur? Those versions are quite old at this point. A few questions…

- How many lines are in `SILVA_132_LSURef_tax_silva_trunc.fasta` (in windows I think you can get this by running `find /c /v "" SILVA_132_LSURef_tax_silva_trunc.fasta` from the command line)
- How many lines are in `taxmap_slv_lsu_ref_132.txt`
- Can you post the first few lines of both files?

Pat

---

<div class="post-metadata">

**Author:** ![YanSun](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@YanSun](https://forum.mothur.org/u/YanSun)\
**Post date:** [May 8, 2020, 6:30am UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/6 "2020-05-08T06:30:54Z")

</div>

Hi Pat,  
There are 7484196 lines in the fasta file, and 198844 lines in the taxonomy file.  
The first lines in both files:  
AY224383.3948.6873 Bacteria;Firmicutes;Bacilli;Bacillales;Bacillaceae;Bacillus;Bacillus cereus  
GGUUAAGUUAGAAAGGGCGCACGGUGGAUGCCUUGACACUAGGAGUCGAUGAAGGACGGGACUAACGCCGAUAUGCUUCG  
GGGAGCUGUAAGUAAGCUUUGAUCCGAAGAUUUCCGAAUGGGGAAACCCACCAUACGUAAUGGUAUGGUAUCCUUAUCUG  
GAUUUCCGAAUGGGGAAACCCACCAUACGUAAUGGUAUGGUAUCCUUAUCUG

primaryAccession.start.stop path organism\_name taxid  
AY224379.2894.5819 Bacteria;Firmicutes;Bacilli;Bacillales;Bacillaceae;Bacillus; Bacillus cereus 815  
AY224380.2894.5819 Bacteria;Firmicutes;Bacilli;Bacillales;Bacillaceae;Bacillus; Bacillus cereus 815  
AY224381.2668.5593 Bacteria;Firmicutes;Bacilli;Bacillales;Bacillaceae;Bacillus; Bacillus cereus 815

I have deleted the “\>” in the fasta file. In the taxonomy file, the first column was originally three separate columns, with the primaryAccession column corresponds to e.g. AY224379, and start column corresponds to e.g. 2894, and stop column corresponds to e.g. 5819. I combined these columns. Because, before I did these, there was an error like AY224379.2894.5819 was in the template file but not in the taxonomy file.

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [May 8, 2020, 11:38am UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/7 "2020-05-08T11:38:16Z")

</div>

A couple things stand out as problem…

- You must have the \> in a fasta file. That’s part of what makes it a fasta file.
- You need to get rid of the “primaryAccession.start.stop path organism\_name taxid” line in your taxonomy file
- The second column of your taxonomy file cannot have spaces in it (e.g. “; Bacillus cereus 815”
- The last character of the taxonomy file needs to be a “;”
- What version of mothur are you using?

I would encourage you to follow the [README for constructing the SILVA reference files](https://mothur.org/blog/2020/SILVA-v138-reference-files/) to see how we generated the one we provide users so that you can adapt it for your data.

Pat

---

<div class="post-metadata">

**Author:** ![YanSun](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@YanSun](https://forum.mothur.org/u/YanSun)\
**Post date:** [May 8, 2020, 7:53pm UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/8 "2020-05-08T19:53:02Z")

</div>

Hi Pate,  
I did what you suggested. Now classify.seqs works. But get.lineage(fasta=SILVA\_132\_LSURef\_tax\_silva\_trunc.fasta, taxonomy=taxmap\_slv\_lsu\_ref\_132.tx, taxon=Eukaryota-Bacteria;Cyanobacteria) still worked only with the taxonomy file, but not with the fasta file.

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [May 8, 2020, 8:33pm UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/9 "2020-05-08T20:33:03Z")

</div>

what version of mothur are you using?

---

<div class="post-metadata">

**Author:** ![YanSun](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@YanSun](https://forum.mothur.org/u/YanSun)\
**Post date:** [May 9, 2020, 6:11am UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/10 "2020-05-09T06:11:31Z")

</div>

I tried 1.41.3, 1.42.3 and 1.43

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [May 9, 2020, 10:19am UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/11 "2020-05-09T10:19:21Z")

</div>

Can you try the latest version that was posted?

---

<div class="post-metadata">

**Author:** ![YanSun](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@YanSun](https://forum.mothur.org/u/YanSun)\
**Post date:** [May 12, 2020, 3:56pm UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/12 "2020-05-12T15:56:13Z")

</div>

Hi Pat,  
I tried the 1.44.1 version. Now everything works. Thanks for the help!

Yan

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/system/32/2_2.png) [@system](https://forum.mothur.org/u/system)\
**Post date:** [May 22, 2020, 3:56pm UTC](https://forum.mothur.org/t/classify-seqs-generating-search-database-takes-forever/20493/13 "2020-05-22T15:56:15Z")

</div>

Closed on May 22, 2020, 3:56pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
