Skip to content

Covariate matrix not recognised #5

Description

@hassebossenbroek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions