add plotMA() functionality#145
Conversation
|
hello @emmcauley , thanks a lot for your PR! The tests are currently not passing due to the lack of an extended summary in the numpy doc style, meaning a longer sentence than the current description. Can you please add one? Regarding the actual content, we are a bit short on staff at the moment, but we'll come back to you in a few weeks! |
|
@mandreux-owkin, thanks for this context -- I've updated the extended summary and it looks like the checks are passing now. Let me know if you need anything else and/or want to see any changes before merging. |
…rename plotMA to make_MA_plot
|
Hi @emmcauley, thanks a lot for this new PR, and sorry for replying so late! I made a couple of changes:
Happy to merge if you're happy with the current state of this PR. |
|
Sorry for the delay, thanks @BorisMuzellec, looks great! I think the use of |
Reference Issue or PRs
There is no existing issue that I saw that is requesting this functionality.
What does your PR implement? Be specific.
This PR uses matplotlib to implement a
plotMA()function.The MA plot shows the mean of the normalized counts versus the log2 fold changes for all genes tested. Genes that are significantly differentially expressed (based on some user-specified threshold) are colored red; the non-significant genes are colored grey. This plot can be helpful to look at LFC shrinkage effects.
This functionality tries to copy the version of

plotMA()in R. Example:A couple of considerations I wanted to flag:
make_scatter()-- if it's helpful, I could potentially generalizemake_scatter()to work withplot_dispersions()andMAplot()