Originally posted by Michael Love
View Post
Thanks a lot Micheal! I got the idea!
The only problem that I have now is I am using HTSeq-count data this my code:
Code:
design <- ~ gut_microbiota + gut_microbiota:animal.nested + gut_microbiota:tissue mm <- model.matrix(design, data=sample_table) (all.zero <- apply(mm, 2, function(x) all(x == 0))) mm <- as.data.frame(mm[, !all.zero]) dds = DESeqDataSetFromHTSeqCount(sampleTable=sample_table, directory='~/htseq/', design=mm)
Code:
Error in terms.default(object, data = data) : no terms component nor attribute
Comment