dipetkov / eems

Estimating Effective Migration Surfaces
GNU General Public License v2.0
102 stars 28 forks source link

Error: Check that the dissimilarity matrix is a square nIndiv-by-nIndiv matrix. #74

Open hanjizhe18 opened 5 months ago

hanjizhe18 commented 5 months ago

Hello. I am getting this error message in the [Diffs::initialize] section of the nDemes log file when I try to run EEMS. Error: checking if the dissimilarity matrix is an nIndiv×nIndiv square matrix. The details are as follows [Diffs::initialize] Error: Check that the dissimilarity matrix is a square nIndiv-by-nIndiv matrix. I checked the Diffs file and it is a sample *sample matrix no problem. Is it caused by too many missing loci in the vcf file? Or is it some other reason?

MboiTui commented 3 months ago

Hello,

I am having a similar issue so i thought i'd add my experience.

When I run eems_snps with the test data barrier-schemeX-nIndiv300-nSites3000 the software starts alright (see output below, manually stopped after 5000 iterations)

Screen Shot 2024-05-02 at 4 25 55 pm

When I use my own data, i get the following error:

Screen Shot 2024-05-02 at 4 27 16 pm

I produced my .diffs matrix with bed2diffs. When comparing to the example dataset I can't find any difference in terms of the format:

First 2 rows and 5 columns:

Screen Shot 2024-05-02 at 4 18 27 pm

Last 2 rows and 3 colums:

Screen Shot 2024-05-02 at 4 18 57 pm

Number of rows and columns:

Screen Shot 2024-05-02 at 4 19 54 pm

Any hints as to where the problem might lie would be appreciated

Cheers, Lorenzo