Hello, I think have problem with writing this command, could you please explain where went wrong exactly with collapseReplicates command?
thanks in advance
gr <- factor(c(rep("Dnmt2_ND", 2), rep("Dnmt2_NF", 2), rep("Dnmt2_HD", 2), rep("Dnmt2_HF", 2)))
colData <- data.frame(group=gr, type="paired-end")
cds <- DESeqDataSetFromMatrix(cn3, colData, design= ~group)
cds <- DESeq(cds)
cnt <- log2(1+counts(cds, normalized=T))
cntColl <- collapseReplicates(cnt, gr, renameCols = TRUE)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘assay’ for signature ‘"matrix", "missing"’