Hi,
Not sure if this is the proper channel to communicate issues.
I have been following the vignette from bioconductor.
I encountered a couple of hiccups that I was able to solve but I can't figure out why I am getting the following error with mixedModelDE (problem with env??) . I tried different ways to indicate the formula and using different factors but I get the same error. Bellow, I have the session info.
Any suggestions on how to solve it.
BTW, the link to the demo data in that pdf doesn't seem to work and the one that I found on your website doesn't have the same data structures to follow the vignette.
Thanks.
pData(target_Data)$testTEMP <- factor(pData(protocolData(target_Data))$CD8TEMP, c("HOT", "COLD"))
results <- c()
for(segment in c("pos","neg")) {
ind <- pData(protocolData(target_Data))$segment == segment
mixedOutmc <-
mixedModelDE(target_Data[, ind],
elt = "log_q",
modelFormula = ~ testTEMP + 1,
groupVar = "testTEMP",
#nCores = parallel::detectCores(),
#multiCore = FALSE
)
# format results as data.frame
r_test <- do.call(rbind, mixedOutmc["lsmeans", ])
tests <- rownames(r_test)
r_test <- as.data.frame(r_test)
r_test$Contrast <- tests
# use lapply in case you have multiple levels of your test factor to
# correctly associate gene name with it's row in the results table
r_test$Gene <-
unlist(lapply(colnames(mixedOutmc),
rep, nrow(mixedOutmc["lsmeans", ][[1]])))
r_test$Subset <- region
r_test$FDR <- p.adjust(r_test$`Pr(>|t|)`, method = "fdr")
r_test <- r_test[, c("Gene", "Subset", "Contrast", "Estimate",
"Pr(>|t|)", "FDR")]
results <- rbind(results, r_test)
}
Hi, Not sure if this is the proper channel to communicate issues. I have been following the vignette from bioconductor. I encountered a couple of hiccups that I was able to solve but I can't figure out why I am getting the following error with mixedModelDE (problem with env??) . I tried different ways to indicate the formula and using different factors but I get the same error. Bellow, I have the session info.
Any suggestions on how to solve it.
BTW, the link to the demo data in that pdf doesn't seem to work and the one that I found on your website doesn't have the same data structures to follow the vignette.
Thanks.
Session info