gbradburd / conStruct

method for modeling continuous and discrete population genetic structure
35 stars 14 forks source link

Error in validate.n.samples(data.block) #22

Closed rpercino closed 5 years ago

rpercino commented 5 years ago

Hi, When I try to run conStruct, after I built myConStructData, it pop up an error: checking data.block Error in validate.n.samples(data.block): the number of samples is not consistent across entries in the data.block. Here is my file denovo30.txt coords.txt I do not the where is it wrong with the file. Thank you in advance, r

petrelharp commented 5 years ago

It looks like you have 64 samples in "denovo30.txt" and only 10 coordinates; you should have coordinates for every sample. Maybe you're trying to specify which sample is at which coordinate using the labels in the first column? If this isn't the problem, please post the code that gave you the error.

rpercino commented 5 years ago

Thank you! I going to fixed the coordinates file

petrelharp commented 5 years ago

Great! I will close this issue; please re-open if you still have a problem.