Hi everyone,
I am running DESeq2 on a public available dataset of RNASeq of mouse immune cells. I am getting the error:
75 rows did not converge in beta, labelled in mcols(object)$betaConv. Use larger maxit argument with nbinomWaldTest
After checking the rowSums for the lines which did not converged (via which(mcols(dds)$betaConv==F)
), I realized that the specific rows do not have low counts.
What could be the cause for this? I am using the Cell Type as variable of interest and, in this, I have quite a few groups with only two samples. Could that be the cause?
Addition: I have filtered the genes by using:
filter <- (rowSums(counts(dds)) >= 5) >= 2
dds[filter,]
but got the following error:
Error in estimateSizeFactorsForMatrix(counts(object), locfunc = locfunc, :
every gene contains at least one zero, cannot compute log geometric means
The fact that every gene contains a zero is a problem for the default DESeq2 routine. Is this bulk RNA-seq? It is a bit strange to have no genes with positive counts. Maybe you could subset to groups of samples that you intend to compare.
It's most likely due to my many different groups and cell types. I have decided to subset into specific groups (organs & cell types) before comparing.