MontgomeryLab / tinyRNA

tinyRNA provides an all-in-one solution for precision analysis of sRNA-seq data. At the core of tinyRNA is a highly flexible counting utility, tiny-count, that allows for hierarchical assignment of reads to features based on positional information, extent of feature overlap, 5’ nucleotide, length, and strandedness.
GNU General Public License v3.0
1 stars 1 forks source link

tiny-plot: improve tick labels in scatter plots that occupy very small or very large ranges #265

Closed AlexTate closed 1 year ago

AlexTate commented 1 year ago

Tick labels in scatter plots are improperly applied when an axis has a very small or very large range. Labels in small ranges are sparse and irregular, and labels in large ranges become crowded.

This undesirable behavior results from:

  1. A fixed n for "every other n" tick labeling. Currently it is fixed at n = 3 which makes labeling inflexible at extreme ranges
  2. There is a rounding bug in the routine that determines major tick locations. Under certain conditions it results in ticks being placed outside of the plot space, which is an issue for downstream routines that mitigate label crowding at the lower and upper ends of each axis. This is most apparent when the axis range is very small.