-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I have a set of what I believe to be properly formatted mff files but aRchaic will not run when these are in a directory of their own. In that case I get an error when running archaic_prepare():
"Error in dimnames(x) <- dn :
length of 'dimnames' [2] not equal to array extent"
IF (and I don't know why this occurred to me to try) I put them in one of the example data folders (moderns or ancients) then I can run the model no problem but now my samples are labeled in the reference blocks so it's difficult to tell what's what.
I've looked at the code posted here for archaic_prepare() and found that this error tracks to the block of code starting on line 64, the section commented as "what if no .RData file is present and CSV files are present". The error itself occurs after line 116-120 is run and looking at the ancient_counts_filtered object is a matrix without columns so no column names can be assigned.
I would think it is something wrong with my data, but again these files work fine if they are placed in the aRchaic example directories.
Any help on resolving this will be appreciated.
Thanks!