Closed slowkow closed 6 years ago
Hi, there are just too many ways to convert triple matrix formats into a matrix (see: https://stackoverflow.com/questions/9617348/reshape-three-column-data-frame-to-matrix-long-to-wide-format). So I am reluctant to add a specific one of them to the seriation package.
Hi Michael,
First, thanks for this excellent package! I use it a lot and it works well. Thanks!
I just wanted to suggest that users might enjoy having a new function like
seriate.dataframe()
for simultaneously seriating 2 factors in a dataframe.I work with genomics, so I often have data in the "long" format instead of a matrix format. Below, I wrote my own function that converts the long format to a matrix and then calls the
seriate.matrix()
function on that. Would you consider adding such a function to the seriation package?Here is a notebook that demonstrates the new function:
https://gist.github.com/slowkow/e0f86b6944db58019a4573e96eb04f59
What do you think?
Here's a first draft of the function copied from the notebook: