Skip to content

Add plot_dispersions() #137

Merged
BorisMuzellec merged 6 commits intoscverse:mainfrom
emmcauley:dispersion_graph
Jun 7, 2023
Merged

Add plot_dispersions() #137
BorisMuzellec merged 6 commits intoscverse:mainfrom
emmcauley:dispersion_graph

Conversation

@emmcauley
Copy link
Copy Markdown
Contributor

Reference Issue or PRs

This PR addresses issue #124 and implements functionality to create a dispersion plot (similar to plotDispEsts() in DESeq2).

What does your PR implement? Be specific.

PR includes a make_scatter() function (based on matplotlib) in utils.py that is then called by plot_dispersions() in dds.py. plot_dispersions() currently just graphs estimated, fitted, and final dispersions -- let me know if more flexibility would be appropriate. Also, I'm happy to add any documentation and address any feedback/further changes you'd like to see in the code!

@emmcauley emmcauley requested a review from a user June 6, 2023 20:28
@emmcauley emmcauley changed the title Add plot_dispersion() Add plot_dispersions() Jun 6, 2023
@BorisMuzellec
Copy link
Copy Markdown
Collaborator

Thanks a lot for this PR @emmcauley, I'll have a look at it ASAP.
For now it seems that checks are mainly failing due to docstring formatting issues that should be easy to fix.

@BorisMuzellec
Copy link
Copy Markdown
Collaborator

@emmcauley I made a few minor changes to allow users to pass arguments to plt.scatter if they want to, and to allow users to save the plot. If you agree with these changes, I'm happy to merge this PR.

Thanks again for your contribution!

@emmcauley
Copy link
Copy Markdown
Contributor Author

@BorisMuzellec these changes are great, thanks for adding these options!

Copy link
Copy Markdown
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.

LGTM, thanks!

@BorisMuzellec BorisMuzellec merged commit 3f071a5 into scverse:main Jun 7, 2023
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.

2 participants