Question: can not obtain DESeq2 results
Dear all, I am trying to run DESeq2 to get the list of differential expressed genes between tumor and normal samples. However I could not get result:
code:
group=c(rep("normal",39),rep("tumor",81))
condition <- factor(group,levels = c("normal","tumor"))
coldata <- data.frame(row.names=colnames(data), condition)
dds <- DESeqDataSetFromMatrix(countData = data, colData = coldata, design= ~ condition )
dds <- DESeq(dds)
res <- results(dds, contrast=c("condition","normal","tumor"))
error info:
resultsNames(dds)
[1] "Intercept" "condition_tumor_vs_normal"
res <- results(dds, name ="condition_tumor_vs_normal")
Error in .wrap_in_length_one_list_like_object(value, name, x) : failed to coerce 'list(value)' to a DESeqResults object of length 1
res <- results(dds, contrast=c("condition","normal","tumor"))
Error in .wrap_in_length_one_list_like_object(value, name, x) : failed to coerce 'list(value)' to a DESeqResults object of length 1
I don't know mistakes in my code and I would appreciate any suggestions.
Zongjun
• 3,410 views
•
link
2 answers
Thanks everyone, I have resolved the problem. Upgrade the Bioconductor(3.9->3.10), and together 50 packages were updated. The version of DESeq2 was upgrade from 1.24 to 1.26, then the error disappeared.
• 0 views
•
link
For my case, I re-installed the Rcpp package and solved the problem.
• 0 views
•
link
Log in to answer this question.
Did you try googling? Put up your sessionInfo.
yes, but found no tips
Check
https://support.bioconductor.org/p/127239/
I uninstalled 14 too new package, and reinstalled "DESeq2" and dependent package use BiocManager::install, error remains unsolved.