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: extended support for large numbers of classes in DGE class scatter plots #324

Closed AlexTate closed 10 months ago

AlexTate commented 1 year ago

Currently, if the number of non-zero-count classes quantified by tiny-count exceeds the number of colors provided in the plot stylesheet (via axes.prop_cycle key), then tiny-plot will fail to produce DGE class scatter plots. The intended behavior is that a new colormap will be used with 20 unique colors in these cases, but the code fails to use the new colormap properly.

The intended behavior is still inadequate. It will be improved by extending, rather than replacing, the original user-defined color set with 60 additional colors, and if this limit is exceeded it will be treated as an error. Realistically this limit should never be exceeded as the legend will run out of space before running out of colors, but it will provide room for future growth.