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

Implement fitType="mean" for vst #123

Merged
merged 5 commits into from
May 10, 2023

Conversation

scottgigante-immunai
Copy link
Contributor

Closes #116.

DESeq2 has a fit type "mean" for the vst which is used as the fallback when the parametric fit fails. It would be nice to have an equivalent in the python implementation.

Here's my attempt based on https://github.com/mikelove/DESeq2/blob/devel/R/vst.R#L188 and https://github.com/mikelove/DESeq2/blob/devel/R/core.R#L892 .

No guarantees that it's exactly the same -- I'm not really familiar enough with the algorithm to dive much deeper.

@scottgigante-immunai
Copy link
Contributor Author

@BorisMuzellec this is failing because IPython no longer supports Python3.8, unrelated to my PR. Leaving it to you to write tests to compare performance here to the R version.

@BorisMuzellec
Copy link
Collaborator

BorisMuzellec commented May 2, 2023

Thanks for this PR @scottgigante-immunai! I'll try to find some time this week to fix the issue with IPython and write some R / Python tests.

Copy link
Collaborator

@BorisMuzellec BorisMuzellec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just implemented tests to compare with DESeq2, seems all good! Thanks @scottgigante-immunai! I'm merging this PR

@BorisMuzellec BorisMuzellec merged commit 3250158 into owkin:main May 10, 2023
@scottgigante-immunai scottgigante-immunai deleted the patch-2 branch May 10, 2023 14:41
@scottgigante-immunai
Copy link
Contributor Author

Amazing! Thanks @BorisMuzellec

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

Successfully merging this pull request may close these issues.

Implement fitType="mean" for vst
2 participants