tiny-plot: user-defined view limits for DGE scatter plots, and other consistency improvements#273
Merged
taimontgomery merged 8 commits intomasterfrom Jan 13, 2023
Merged
tiny-plot: user-defined view limits for DGE scatter plots, and other consistency improvements#273taimontgomery merged 8 commits intomasterfrom
taimontgomery merged 8 commits intomasterfrom
Conversation
… are free to specify either or both values. Values are expected to match what the user sees on the labeled plot axes, i.e. the log2 normalized value rather than the raw count value. This commit also addresses a bug in the lower limit calculation that occurs when the feature with the lowest count also has a count of zero in another sample/group (for DGE scatter plots and replicate scatter plots, respectively). Under certain conditions this could lead to the lowest count feature being clipped from the plot space. This is usually a non-issue due to the axes margins. get_scatter_view_lims() will report a warning if the values for axes.xmargin and axes.ymargin differ. The larger of the two values will be chosen if this happens.
… in filenames for tiny-deseq's DGE tables, and in tiny-plot's DGE scatter plots
… also includes a version bump since this PR represents the first functional change to tinyRNA since the v1.2.1 release
…slightly more liberal upper tick placement
…e plugin for PyCharm so that it doesn't crash when using conda-provided R on macOS
Collaborator
|
Tested custom plot limits successfully with Lib303 dataset. File names and plot labels are correct. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds options for user-specified min and/or max view limits for DGE scatter plots, which are specified as log2 count values and can be whole or fractional numbers. It also includes minor changes to output filenames from tiny-deseq and tiny-plot to be consistent with the "experimental condition vs. control condition" order used in DGE scatter plots. Plot titles and axis labels in bar plots have been updated to have sentence case, to be consistent with the scatter plots.
The following minor bugs have also been addressed:
Closes #271