bjmt / universalmotif

Motif manipulation functions for R.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new view_motifs() function plots in alphabetical order instead of list input order

snystrom opened this issue · comments

The new rewrite of view_motifs() makes it difficult to arrange motifs in a specific order, as the plot is now arranged in descending alphabetical order by motif name. Below is the output from view_motifs() on the same motif list before & after the rewrite.

Old Behavior
image

New Behavior
image

This is a random guess after peeking at the source code, but perhaps if the names are first converted to a factor, where the levels equal their input order before passing to ggplot, this issue could be resolved.

Ah, hang on. I think my dev environment was using a cached old version. This I think is resolved. Sorry.