angieyen / ChromDiff

ChromDiff program as described in Yen and Kellis, Nature Communications 2015.
http://compbio.mit.edu/ChromDiff
GNU General Public License v3.0
11 stars 2 forks source link

Covariate matrix not recognised #5

Open hassebossenbroek opened 3 years ago

hassebossenbroek commented 3 years ago

Hi,

I'm having trouble running ChromDiff with correction for confounding factors (it runs fine if I leave this out). I only have one covariate I would like to correct for, which is gender (column "gender" in file describing epigenome unique IDs and metadata). The error I get when running ChromDiff is:

Error in `[.default`(fixed.cov.mat, colnames(mat), ) :
  incorrect number of dimensions
Calls: comp.groups -> get_residuals -> [ -> [.factor -> NextMethod
Execution halted

I've tried to format gender as two separate columns in the covariate matrix (as in the example files: FEMALE and MALE), and as one (GENDER), but both give me the same error. My covariate matrix looks like this:

GENDER
776 MALE
786 MALE
812 FEMALE
830 MALE
932 FEMALE
HV2 FEMALE
HV3 FEMALE
HV4 FEMALE

and my covariate mapping matrix looks like this:

GENDER
GENDER TRUE

I don't know why the software thinks this number of dimensions is not right. Can anyone help?

Thank you, Hasse