Hi,
I am using DESeq2 to find Differentially expressed genes. I am using the following code:
conds<-c("kd1","kd1","kd2","kd2","GFP","GFP") Design<-data.frame(condition=conds,row.names=paste(conds,rep(c(1,2),3),sep="_")) dds <- DESeqDataSetFromMatrix(countData = assay(se), colData = Design, design = ~ condition) ddsCollapsed <- collapseReplicates( dds, groupby = dds$condition) ddsCollapsed <- DESeq(ddsCollapsed, betaPrior=FALSE)
after running the last line, I get the following:
using pre-existing size factors
estimating dispersions
found already estimated dispersions, replacing these
gene-wise dispersion estimates
mean-dispersion relationship
final dispersion estimates
fitting model and testing
Warning message:
In checkForExperimentalReplicates(object, modelMatrix) :
same number of samples and coefficients to fit,
estimating dispersion by treating samples as replicates.
read the ?DESeq section on 'Experiments without replicates'
I don't know what is the problem actually..
could anybody help
Best,
Tamer
Hi Michael,
Hi, I ran the following script on R version 3.2 and everything was fine:
however, when I updated R into 3.3 I start getting the following error message:
I tried to follow many solutions but non of them worked .
can you help?!
thanks much
This says that the column names of the countData are not the same as the rownames of colData.
You should check these yourself to make sure they are in the correct order first. You will see that they are not the same descriptors (or else you wouldn't have gotten this error).
Then to remove the error you can either set one or the other, or remove column names from the countData altogether:
or
or
I tried all these but till have the error .. as you see I am new in Bioconductor which makes me frustrated .. the script was fine and now after updating R I am getting this error ,,, anyway, thank you for your help
i solved the problem .. thanks much for your help
just one more question, now I have two tables each contain sigGenes for each kd over GFP .. I would like to cluster (using pheatmap) the count matrices of reskd1SigGenes and reskd2SigGenes together in one plot.
can you guide me through
thanks a million
"can you guide me through"
No. This is in the DESeq2 vignette and our workflow. You need to take time to read the documentation. You will see that asking others what to do at every step is actually a waste of your own time, and that you can accomplish much more if you read documentation and find answers on your own.
in your recent vignette (published on Sept 3rd), it is not clear at all if one can plot heat map using two different count matrices. I do see that it is easy to do it for single counting matrix.. that why I am asking .. I read all the documentations related to DESeq2..
thanks much for your time