Error function vst in DESeq2
dds <- DESeqDataSetFromMatrix (countData = countdata,
colData = metadata,
design = ~ Condition + Genotype)
dds <- estimateSizeFactors(dds)
vst_data <- vst(dds, blind = TRUE)
vst_counts <- assay(vst_data)
analysis<- DESeq(vst_counts)
At this step I always have this error:
Error in DESeq(vst_counts) : is(object, "DESeqDataSet") is not TRUE
How to correct that?
• 1,582 views
•
link
2 answers
Don't use vst counts in DESeq and instead provide a DESeqDataSet as is intended. VST counts should largely only be used for viz/downstream purposes.
• 0 views
•
link
Hi, I think you first follow the DESeq2 tutorial to familiarize yourself with the protocol:
https://bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html
In short, if you look at the "Quick start" section, you will come to know the flaw in your method.
• 0 views
•
link
Log in to answer this question.
As others have said, you should familiarise yourself with the DESeq2 manual, but this is a basic set of commands to doing a DESeq2 analysis.
Provided you've used the right contrast,
dds.rescontains information like LFC, standard error, p-value and adjuvsted p-value for the differentially expressed genes. You can convert it to a data-frame and immediately use it in visualisations like volcano-plots etc.Just remember that DESeq2 will always require raw, untransformed counts for running differential analysis, and the rlog2/vst transformed data for downstream applications.
If you see:
This is skipping the differential expression part and just generates ~log2 transformed data for downstream without doing any statistical testing.