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

Differential expression #11

Open
victorsanchezarevalo opened this issue Dec 9, 2022 · 6 comments
Open

Differential expression #11

victorsanchezarevalo opened this issue Dec 9, 2022 · 6 comments

Comments

@victorsanchezarevalo
Copy link

Hi Mark,

I have a question. I am doing differential expression between two cell types in scRNA-seq, I tried scVI and it worked but diffxpy did not worked, it gives me this error: ZeroDivisionError: float division by zero

I wrote them with an issue, apparently it is a common error because others described the same problem. I am waiting for the reply but they did not to respond.

I wanted to performed this method, becase I am worried about the discrepancy of DEGs that I have with scVI (approximately 2400 DEGs) with the Differential expression using Scanpy function using Wilconson test (9.000 DEGs). Have you compared different methods for differential expression? Could you give me any advice, please?.

Thanks a lot.

Victor

@mousepixels
Copy link
Owner

Yeah I have had similar issues with diffxpy too. Make sure you are not passing the scaled X.. if not then it is an issue with diffxpy not you.

I haven't done a side-by-side comparison of the two. However, I think that I would trust the results from scvi more by default. However, did you subset on variable genes before training the scvi model? If so, there could be genes left out.

@victorsanchezarevalo
Copy link
Author

Thanks Mark

I run the not scaled X and I had the same error. I think it is an issue with diffxpy.

With scVI I followed your tutorial and I did not subset the data, I used the adata. I had 2400 DEGs compared with 9000 with Scanpy Wilconson test.

I really appreciate your help!

Thanks!

Victor

@mrcrag1
Copy link

mrcrag1 commented Sep 14, 2023

Hi, thanks for posting all the great material!
I'm running through your PyDeseq2 notebook and you pass a 'clinical' argument when you create the DeseqDataSet. This doesn't compile for me, and I can find nothing when I RTM (pydeseq2.readthedocs.io).
Thanks,
mrcrag

@gaozili1989
Copy link

I got this error as well: ZeroDivisionError: float division by zero

@mousepixels
Copy link
Owner

Hi, thanks for posting all the great material! I'm running through your PyDeseq2 notebook and you pass a 'clinical' argument when you create the DeseqDataSet. This doesn't compile for me, and I can find nothing when I RTM (pydeseq2.readthedocs.io). Thanks, mrcrag

They changed clinical to metadata.

@mousepixels
Copy link
Owner

I don't really use diffxpy much anymore because it has these little unaddressed issues. I mostly do psuedobulk with pydesq2 now

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

4 participants