Closed bio-la closed 4 years ago
Hi @bio-la
what version of the zinbwave package are you using? In an older version of the package it was possible for some weights to be zero and that could be the problem.
I would suggest to update to the newest version of the package and try again. If that doesn't help, it may be helpful to look at the value of your 29th weight.
Best, Davide
Hi, I'd like to estimate the zinbwave weights to use in a differential expression analysis. Some of my tests fail with this error:
Error in getAndCheckWeights(object, modelMatrix) : all(weights.ok) is not TRUE Calls: DESeq ... estimateDispersionsGeneEst -> getAndCheckWeights -> stopifnot Execution halted
I tried to debug using the function getAndCheckWeights
and lucky me, I have only one weight.ok which is false!
which(!weights.ok)
Can you give me a hint on what I should do to fix that? I am using a 1000 x 4755 object (top 1000 variable genes) k=10 epsilon=1000
zinb <- zinbwave(se.vars, K=10, epsilon=1000, BPPARAM=BiocParallel::MulticoreParam(10))
dds <- DESeqDataSet(zinb, design = ~pool+cell.type)
thanks!