Skip to content

Design matrix is supposed to contain also the dependent variable? #3

@lorenzoFabbri

Description

@lorenzoFabbri

I tried to reproduce the example in the tutorial but was not able to since I cannot create the methylation matrix. Using my data I keep encountering the following message error:

Error in design[, "methylation"] : incorrect number of dimensions

I was able to track it down to the following line:

dep.idx <- which(colnames(design) == dependent.variable)
.

Why is the design matrix supposed to contain also information on the dependent variable? In your tutorial data indeed does not contain it. Thank you.

EDIT:
I used trace to really understand the code and apparently there is a problem when doing design[, "methylation"] <- methylation[i, ]. Is it possible that it should instead be design[, "methylation"] <- t(methylation[i, ])?

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