# trouble shooting a create.database error

**URL:** <https://forum.mothur.org/t/trouble-shooting-a-create-database-error/3200>\
**Category:** Commands in mothur\
**Created:** [April 6, 2017, 4:56am UTC](https://forum.mothur.org/t/trouble-shooting-a-create-database-error/3200 "2017-04-06T04:56:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![weebeige](https://avatars.discourse-cdn.com/v4/letter/w/dfb087/32.png) [@weebeige](https://forum.mothur.org/u/weebeige)\
**Post date:** [April 6, 2017, 4:56am UTC](https://forum.mothur.org/t/trouble-shooting-a-create-database-error/3200/1 "2017-04-06T04:56:36Z")

</div>

I’m running an analysis based on the miseq SOP. I’ve used the SOP to generate all the standard outputs and would now like to use create.database.  
It’s all running well until the create.database command outputs a long list of “[ERROR]: OTU size info does not match for bin x. The contaxonomy file indicated the OTU represented y sequences, but the repfasta file had z. These should match. Make sure you are using files for the same distance.”

I’ve tried lots of combinations of inputs but am still not sure where I’m going wrong. The summary of the most recent code of I’ve tried is:

Commands as per the SOP up to summary.tax  
Then, rename the files as follows, just to try and keep in clear in my head:  
system(cp stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.fasta final.fasta)  
system(cp stability.contigs.good.groups final.groups)  
system(cp stability.trim.contigs.good.names final.names)  
system(cp stability.trim.contigs.good.unique.good.filter.unique.precluster.denovo.vsearch.pick.pick.count\_table final.count\_table)  
system(cp stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pds.wang.pick.taxonomy final.taxonomy)  
system(cp stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pds.wang.pick.tax.summary final.tax.summary)

Then run the following:  
dist.seqs(fasta=final.fasta, cutoff=0.20, processors=32)  
cluster(column=final.dist, count=final.count\_table)  
make.shared(list=final.opti\_mcc.list, count=final.count\_table, label=0.03)  
classify.otu(list=final.opti\_mcc.list, count=final.count\_table, taxonomy=final.taxonomy, label=0.03)

get.oturep(list=final.opti\_mcc.list, label=0.03, fasta=final.fasta, column=final.dist, name=final.names)  
create.database(shared=final.opti\_mcc.shared, label=0.03, repfasta=final.opti\_mcc.0.03.rep.fasta, repname=final.opti\_mcc.0.03.rep.names, constaxonomy=final.opti\_mcc.0.03.cons.taxonomy)

Any thoughts on where I might be going wrong?

Many thanks!

---

<div class="post-metadata">

**Author:** ![campenr](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@campenr](https://forum.mothur.org/u/campenr)\
**Post date:** [April 6, 2017, 1:18pm UTC](https://forum.mothur.org/t/trouble-shooting-a-create-database-error/3200/2 "2017-04-06T13:18:07Z")

</div>

So the error is telling you that you shared file and cons.taxonomy files do not have the same number of OTUs. This is probably the result of using the wrong file name somewhere in your processing and therefore the wrong file (leading to the differing number of OTUs). Try double checking all your file names were correct for each command up to this point. Also linking you logfile could be helpful.

What version of Mothur are you running?

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [April 6, 2017, 2:16pm UTC](https://forum.mothur.org/t/trouble-shooting-a-create-database-error/3200/3 "2017-04-06T14:16:28Z")

</div>

Can you try?

mothur \> get.oturep(list=final.opti\_mcc.list, label=0.03, fasta=final.fasta, column=final.dist, count=final.count\_table)

---

<div class="post-metadata">

**Author:** ![weebeige](https://avatars.discourse-cdn.com/v4/letter/w/dfb087/32.png) [@weebeige](https://forum.mothur.org/u/weebeige)\
**Post date:** [April 10, 2017, 12:35am UTC](https://forum.mothur.org/t/trouble-shooting-a-create-database-error/3200/4 "2017-04-10T00:35:43Z")

</div>

Mothur version 1.39.5

The new get.oturep command fixed it - many thanks!
