owkin / PyDESeq2

A Python implementation of the DESeq2 pipeline for bulk RNA-seq DEA.
https://pydeseq2.readthedocs.io/en/latest/
MIT License
588 stars 63 forks source link

[BUG] #339

Open kavousisiavash opened 3 hours ago

kavousisiavash commented 3 hours ago

Describe the bug Hi i get this error TypeError: DeseqDataSet.init() got an unexpected keyword argument 'design'

when run this part of documentation :

image

https://pydeseq2.readthedocs.io/en/latest/auto_examples/plot_step_by_step.html#sphx-glr-auto-examples-plot-step-by-step-py

If I remove the design, the code will run, but this has consequences that you know better. How should I solve this problem?

BorisMuzellec commented 3 hours ago

Hi @kavousisiavash, indeed, this is because this feature is only available in the 0.5.0-rc1 pre-release that was published yesterday.

You can either:

You should be able to see (and choose) which version of the docs you are reading from the bottom-right corner of the read-the-docs page:

Capture d’écran 2024-11-20 à 14 25 57
kavousisiavash commented 2 hours ago

Hello Thanks for your help I first ran the code you introduced Then I checked the version via the command prompt But the problem was not solved.

image

image

image

BorisMuzellec commented 2 hours ago

@kavousisiavash you still have v 0.4.12 installed. If you want to use the same environment, you need to use the --upgrade flag. (pip install --upgrade --pre pydeseq2)

Also, remember to restart the jupyter kernel once the installation is done.