Add a parameter to name kink image in thresh_peaks#44
Add a parameter to name kink image in thresh_peaks#44julistanley wants to merge 3 commits intomainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #44 +/- ##
=======================================
Coverage 77.68% 77.68%
=======================================
Files 8 8
Lines 802 802
=======================================
Hits 623 623
Misses 179 179
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
It's a shame that matplotlib doesn't make it easy to save plots as variables, like in R/ggplot. That would make it easier for that plot to just be an additional return |
|
This sounds very reasonable haha. As a sidenote, I think we might actually be able to return the plot by doing something like this actually (though this might not be what you had in mind): Just request me for a review when you are ready to merge! :) |
|
By the way, just revisiting this very reasonable PR. Any reason not to merge? I think I was originally holding off because it was a draft PR (so I wasn't sure if there was more to it) but I am happy with it as is! :) |
Explain your changes:
I am using this pipeline on real data and am calculating Z scores for multiple files, like this:
There's two issues here: (1) it combines the kink plots from all the files, so I just added
plt.figure()to my wrapper,and (2) it saves all the images as kink.png, so it overwrites previous ones.
No problem, let's just add a parameter to thresh_peaks to let us name the image files so I can save them each with the name of their associated wig file.
Does this close any issues?
Any comments? Anything in particular you need feedback on?
PR checklist