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

BUG return output with same dimensions as input with mean disp fuction #253

Merged
merged 4 commits into from
Mar 21, 2024

Conversation

BorisMuzellec
Copy link
Collaborator

@BorisMuzellec BorisMuzellec commented Mar 14, 2024

Reference Issue or PRs

Fixes #251, fixes #249.

What does your PR implement? Be specific.

With dds.uns["disp_function_type"] = "mean", dds.disp_function returns a single value, regardless of input shape. This PR fixes this behaviour by returning an output (repeated mean dispersion) of the same shape as in the input.

Further, it refactors DeseqDataSet to add a trend_fit_type attribute that allows controlling how the trend curve is fitted (only "parametric" and "mean" are supported for now).

A test case for trend_fit_type = "mean" was also implemented.

@owkin owkin deleted a comment from wiz-inc-4bedb977d6 bot Mar 14, 2024
tests/test_pydeseq2.py Outdated Show resolved Hide resolved
@owkin owkin deleted a comment from wiz-inc-4bedb977d6 bot Mar 15, 2024
Copy link

@umarteauowkin umarteauowkin left a comment

Choose a reason for hiding this comment

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

Very clear, thanks a lot @BorisMuzellec

@BorisMuzellec BorisMuzellec merged commit 2424c7b into main Mar 21, 2024
15 checks passed
@BorisMuzellec BorisMuzellec deleted the fix_mean_disp_func branch March 21, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants