Entering edit mode
4.4 years ago
zjxia
▴
10
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
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.