You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ At the core of tinyRNA is tiny-count, a highly flexible counting utility that al
161
161
A wrapper R script for DESeq2 facilitates DGE analysis of counted sample files.
162
162
163
163
### `tiny-plot`
164
-
The results of feature counting and DGE analysis are visualized with high resolution plot PDFs. User-defined plot styles are also supported via a Matplotlib stylesheet.
164
+
The results of feature counting and DGE analysis are visualized with high resolution plot PDFs. User-defined plot styles are also supported via a Matplotlib style sheet.
165
165
166
166
[Full documentation for tiny-plot can be found here.](doc/tiny-plot.md)
Copy file name to clipboardExpand all lines: doc/Configuration.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,9 @@ To make it simple to specify your fastq files and their locations, along with as
32
32
33
33
Small RNAs can often be classified by sequence characteristics, such as length, strandedness, and 5' nucleotide. We provide a Features Sheet (`features.csv`) in which you can define selection rules to more accurately capture counts for the small RNAs of interest. [More info](#features-sheet-details).
34
34
35
-
#### Plot Stylesheet
35
+
#### Plot Style Sheet
36
36
37
-
Plot styles can be optionally overridden using a matplotlibrc stylesheet. [More info](#plot-stylesheet-details).
37
+
Plot styles can be optionally overridden using a matplotlibrc style sheet. [More info](#plot-style-sheet-details).
38
38
39
39
## Editing YAML Files
40
40
The Run Config and Paths File are YAML formatted files that can be edited with a text editor. Changing values in these files is pretty straight forward, but it is useful to know a little about YAML syntax.
@@ -174,5 +174,5 @@ Examples:
174
174
### Case Sensitivity
175
175
All selectors are case-insensitive.
176
176
177
-
## Plot Stylesheet Details
178
-
Matplotlib uses key-value "rc parameters" to allow for customization of its properties and styles, and one way these parameters can be specified is with a [matplotlibrc file](https://matplotlib.org/3.4.3/tutorials/introductory/customizing.html#a-sample-matplotlibrc-file), which we simply refer to as the Plot Stylesheet. You can obtain a copy of the default stylesheet used by tiny-plot with the command `tiny get-templates`. Please keep in mind that tiny-plot overrides these defaults for a few specific elements of certain plots. Feel free to reach out if there is a plot style you wish to override but find you are unable to.
177
+
## Plot Style Sheet Details
178
+
Matplotlib uses key-value "rc parameters" to allow for customization of its properties and styles, and one way these parameters can be specified is with a [matplotlibrc file](https://matplotlib.org/3.5.2/tutorials/introductory/customizing.html#a-sample-matplotlibrc-file), which we simply refer to as the Plot Style Sheet. You can obtain a copy of the default style sheet used by tiny-plot with the command `tiny get-templates`, and your modified style sheet can be passed using the [plot_style_sheet parameter](Parameters.md#style-sheet). Please keep in mind that tiny-plot overrides these defaults for a few specific elements of certain plots. Feel free to reach out if there is a plot style you wish to override but find you are unable to.
The plot style sheet can be used to override the default Matplotlib styles used by tiny-plot. Unlike the other parameters, this option is found in the Paths File. See the [Plot Stylesheet documentation](Configuration.md#plot-stylesheet-details) for more information.
220
+
The plot style sheet can be used to override the default Matplotlib styles used by tiny-plot. Unlike the other parameters, this option is found in the Paths File. The expected value for this parameter is the path to your modified style sheet. See the [Plot Style Sheet documentation](Configuration.md#plot-style-sheet-details) for more information.
221
221
222
222
### Vector Scatter
223
223
| Run Config Key | Commandline Argument |
@@ -241,7 +241,7 @@ The min and/or max bounds for plotted lengths can be set with this option. See [
241
241
| plot_dge_scatter_min: |`--dge-min VALUE`|
242
242
| plot_dge_scatter_max: |`--dge-max VALUE`|
243
243
244
-
The min and/or max bounds for DGE scatter plots can be set with this option. The value you provide should be a log2 count value and can be whole or fractional, e.g. `--dge-min 1.9` would produce a plot whose first tick mark is labeled 2 and would include points for feature counts as low as 3.74. Unspecified bounds are automatically calculated to fit the data, and will include the margin specified by the `axes.[x/y]margin` key in the [Plot Stylesheet](Configuration.md#plot-stylesheet-details).
244
+
The min and/or max bounds for DGE scatter plots can be set with this option. The value you provide should be a log2 count value and can be whole or fractional, e.g. `--dge-min 1.9` would produce a plot whose first tick mark is labeled 2 and would include points for feature counts as low as 3.74. Unspecified bounds are automatically calculated to fit the data, and will include the margin specified by the `axes.[x/y]margin` key in the [Plot Style Sheet](Configuration.md#plot-style-sheet-details).
Copy file name to clipboardExpand all lines: doc/tiny-plot.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Rules are referred to by their row number in the Features Sheet and the first no
59
59
- Alignments which do not overlap with any features
60
60
61
61
#### Rule Chart Styles
62
-
Percentage label darkness and bar colors reflect the magnitude of the rule's contribution. Magnitude is always considered on a 0-100% scale, rather than scaling down to the chart's view limits. These styles cannot be changed using a plot stylesheet.
62
+
Percentage label darkness and bar colors reflect the magnitude of the rule's contribution. Magnitude is always considered on a 0-100% scale, rather than scaling down to the chart's view limits. These styles cannot be changed using a plot style sheet.
63
63
64
64
65
65
@@ -111,13 +111,25 @@ The control condition is plotted on the x-axis, but it must be specified in your
111
111
#### View Limits
112
112
Both the lower and upper bound of the plot's axes [can be set manually](Parameters.md#bounds-for-lendist-charts). Unspecified bounds are automatically calculated to fit the data.
113
113
114
+
#### Zero-Count Features
115
+
Due to the plot's log scale, points are not plotted for features that have 0 reads in one of the compared conditions. Zero-count features will be supported in a future release.
116
+
114
117
115
118
116
119
## sample_avg_scatter_by_dge_class
117
-
The previous plot type can be extended to group and color differentially expressed features by class. Classes are sorted by abundance before plotting to maximize representation. You can also filter the classes displayed using [plot_class_scatter_filter](Parameters.md#filtering-classes-in-dge-class-scatter-plots)
120
+
The previous plot type can be extended to group and color differentially expressed features by class.
>**Tip**: if you find that two groups of interest share proximity and are too similar in color, you can change the group's color with a modified Plot Stylesheet. The groups will be colored in the same order they are listed in the legend (not including P value outgroup), e.g. changing the color of the ERGO group means changing the 5th color in the `axes.prop_cycle` color cycler. See the [config file documentation](Configuration.md#plot-stylesheet-details) for more info about the Plot Stylesheet.
126
+
#### Filtering Classes
127
+
You can filter which classes are displayed using [plot_class_scatter_filter](Parameters.md#filtering-classes-in-dge-class-scatter-plots).
128
+
129
+
#### Zero-Count Classes
130
+
If all features have 0 reads for a given class in one of the compared conditions, then that class is omitted from the plot and legend due to the plot's log scale. Zero-count classes will be supported in a future release.
131
+
132
+
#### Customizing Group Colors
133
+
If you find that two groups of interest share proximity and are too similar in color, you can change the group's color with a modified Plot Style Sheet. Group colors are assigned from the `axes.prop_cycle` color cycler when there are fewer groups than colors, or from the [tab20](https://matplotlib.org/3.5.2/tutorials/colors/colormaps.html#qualitative) colormap when groups outnumber colors. First, the total list of unique classes is gathered from the counts table and sorted, and the resulting list of classes is assigned colors in the order produced by the cycler.
134
+
135
+
For example, changing the color of the miRNA group in the above plot means changing the 6th color in the `axes.prop_cycle` list (assuming all classes are represented in the plot). The P value outgroup is always the same color and doesn't affect the assignment process. See the [config file documentation](Configuration.md#plot-style-sheet-details) for more info about the Plot Style Sheet.
0 commit comments