Add a parameter to name kink image in thresh_peaks #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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