# Problems with distance matrix

**URL:** https://forum.mothur.org/t/problems-with-distance-matrix/2391
**Category:** mothur bugs
**Created:** [June 9, 2015, 4:58pm UTC](https://forum.mothur.org/t/problems-with-distance-matrix/2391 "2015-06-09T16:58:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![huffmanms](https://avatars.discourse-cdn.com/v4/letter/h/c0e974/32.png) [@huffmanms](https://forum.mothur.org/u/huffmanms)
#### Post date: [June 9, 2015, 4:58pm UTC](https://forum.mothur.org/t/problems-with-distance-matrix/2391/1 "2015-06-09T16:58:17Z")

</div>

I am trying to conduct a phylogenetic analysis of MiSeq data using the commands outlined in the MiSeq SOP.

I have been running into issues with the clearcut command. Mothur will successfully complete the dist.seq command and produce a phylip formatted matrix that is needed for the clearcut command, however when I try and run clearcut I get errors that look like this:

Clearcut: Incorrect number of values in the distance matrix. Expected 162945179, and found 1029876420.  
Clearcut: Syntax error in distance matrix at offset 1122910206.

then mothur crashes. I have tried running dist.seqs with 1 or 2 processors as I thought it might be caused by splitting the operation between too many processors but I continue running into the issue.

If anyone has experienced this before or has any advice on how to fix this problem it would be greatly appreciated,

Thank you,

Mike H.

---

<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: [June 16, 2015, 5:44pm UTC](https://forum.mothur.org/t/problems-with-distance-matrix/2391/2 "2015-06-16T17:44:33Z")

</div>

This error occurs when mothur finds an error in the distance file. Too many distances on a line, not enough lines in the file, ect. Most often when this occurs it is caused by a corruption of the file or a problem when the file was created like insufficient disk space to write the entire file.
