Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot compute log geometric means Deseq2 #97

Open
AnjaliC4 opened this issue Feb 19, 2022 · 2 comments
Open

cannot compute log geometric means Deseq2 #97

AnjaliC4 opened this issue Feb 19, 2022 · 2 comments

Comments

@AnjaliC4
Copy link

AnjaliC4 commented Feb 19, 2022

Hi,
Thank you for this great package. I am using Deseq2 mthod with pbDS function and got this error:

Error in estimateSizeFactorsForMatrix(counts(object), locfunc = locfunc, :
every gene contains at least one zero, cannot compute log geometric means
Calls: pbDS ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted

It seems like this error pops up in Deseq2 if every sample has atleast 1 zero. I do not want to add a pseudocount to all my values. Is there a way around this in Muscat ?

Thanks,
Anjali

@HelenaLC
Copy link
Owner

Just out of curiosity (to see whether this is filtering-related), could you try 1) running with method = "edgeR" and 2) funning with min_cells = 0, filter = "none" (or different variations of filter)?

@AnjaliC4
Copy link
Author

AnjaliC4 commented Feb 25, 2022

Hi @HelenaLC you are correct. It is indeed related to the filtering issue. When I say min_cells=10 with DESeq2 - it works and min_cells=5 with edgeR also works. There is an option in Deseq2 to use -> dds<-estimateSizeFactors(dds, sfType = 'iterate' or 'poscounts') which is specifically made to handle this error case. Could you please enable choosing 'type' option pbDS function with method DESeq2? Is this something that can be quickly implemented, if possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants