# unifrac error

**URL:** <https://forum.mothur.org/t/unifrac-error/2320>\
**Category:** mothur bugs\
**Created:** [March 25, 2015, 4:14pm UTC](https://forum.mothur.org/t/unifrac-error/2320 "2015-03-25T16:14:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cottologist](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cottologist](https://forum.mothur.org/u/cottologist)\
**Post date:** [March 25, 2015, 4:14pm UTC](https://forum.mothur.org/t/unifrac-error/2320/1 "2015-03-25T16:14:44Z")

</div>

Hi,

I’m facing the following errwor when proceeding unifrac:

unifrac.weighted(tree=cg.sub.final.thetayc.0.03.tre, count=cg.good.unique.good.filter.unique.precluster.uchime.pick.pick.subsample.count\_table)

[WARNING]Your group or design file contains a group named final.S384. Perhaps you are used a group file instead of a design file?  
A common cause of this is using a tree file that relates your groups (created by the tree.shared command) with a group file that assigns sequences to a group.

I created the tree file with;

tree.shared(shared=cg.good.unique.good.filter.unique.precluster.pick.pick.an.unique\_list.0.03.subsample.shared,calc=thetayc-braycurtis)

The .shared and the .count\_table file have both been created during sub.sampling so they must contain the same things.

  
Thanks!

---

<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:** [March 25, 2015, 6:57pm UTC](https://forum.mothur.org/t/unifrac-error/2320/2 "2015-03-25T18:57:10Z")

</div>

The tree file has group names as the tree nodes, but it looks like the rows in your count file are sequence names. Is that correct? If so, you want to create a design file, [http://www.mothur.org/wiki/Design\_File](http://www.mothur.org/wiki/Design_File), that relates your groups.

---

<div class="post-metadata">

**Author:** ![cottologist](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cottologist](https://forum.mothur.org/u/cottologist)\
**Post date:** [March 26, 2015, 10:59am UTC](https://forum.mothur.org/t/unifrac-error/2320/3 "2015-03-26T10:59:34Z")

</div>

Thanks a lot, that solved my problem!

My command is now:

unifrac.weighted(tree=cg.sub.final.thetayc.0.03.tre, group=cg\_design.txt)

  
C.
