qiime/qiime — pull request #901 by jrrideout (2013-05-03 05:56:42+00:00)
Title: Added support for non-diagonal zeros in Moran's I.

This issue came up during the biogeo project when there are identical samples in the distance matrix, which result in zeros that aren't isolated to the diagonal. R's ```Moran.I``` would error out on this input.

The fix is to substitute a very small number for the zeros in the matrix (since we can't use zero itself). @antgonza, @gregcaporaso, and I discussed this in detail on the private biogeo issue tracker.

These changes also add an explicit test for this case.