Hello, I am trying to run Deseq2 on some code, but I seem to be having trouble when I run Deseq2, the error I get is "renaming the first element in assays to 'counts' Error in DESeqDataSet(SEB3, design = ~tx) : all variables in design formula must be columns in colData"
However, if I do colData(b2) the error I get is colData(b2) Error in (function (classes, fdef, mtable) : unable to find an inherited method for function 'colData' for signature '"matrix"'
Does anyone have any advice? I am able to successfully make a summarized experiment with the code rounded <- data.matrix(mutate_all(as.data.frame(b2), as.integer)) SEB3 <- SummarizedExperiment(assays= SimpleList(exprs = rounded))
Please better clarify your problem here : 1) show your code and the subsequent error 2) show example of your colData dataset Thanks