# Getting on error in unifrac.weighted with subsample

**URL:** <https://forum.mothur.org/t/getting-on-error-in-unifrac-weighted-with-subsample/2535>\
**Category:** Commands in mothur\
**Created:** [September 17, 2015, 2:41am UTC](https://forum.mothur.org/t/getting-on-error-in-unifrac-weighted-with-subsample/2535 "2015-09-17T02:41:59Z")\
**Posts on this page:** 2\
**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:** [September 17, 2015, 2:41am UTC](https://forum.mothur.org/t/getting-on-error-in-unifrac-weighted-with-subsample/2535/1 "2015-09-17T02:41:59Z")

</div>

I’m running the unifrac.weighted command - it works great until I specify a subsampling depth.

The command structure I’m using is:  
unifrac.weighted(tree=xxx.tre, group=xxxx.groups, distance=column, subsample=xxxx, processors=32)

The logfile notes the following for each of my samples, then ERROR after all samples are removed:  
“You have selected a size that is larger than sampleX number of sequences, removing sampleX.”

I’ve checked the group file and confirmed the number of sequences in my samples is greater than the specified subsampling depth (2050).

Is there something I’ve got wrong in the command?

Thanks in advance for any help you can offer!

---

<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:** [September 17, 2015, 4:46pm UTC](https://forum.mothur.org/t/getting-on-error-in-unifrac-weighted-with-subsample/2535/2 "2015-09-17T16:46:07Z")

</div>

Could you send your log file and input files to [mothur.bugs@gmail.com](mailto:mothur.bugs@gmail.com)?
