possible cross tab bugs | Peter | 2010-06-24 20:06 |
Status: Closed | ||
Ben, I like the idea of connecting an output R data frame to a labkey grid or an extJs grid. right now the only data-frame oriented function that pushes a data frame from R back into labKey is the Rlabkey cover of assay.saveBatch(). so in order to use this you would need to pre-define the grid column shapes that you want to display as assay result sets. then you would save a batch into the assay results table and then select it back out into a grid. This might be ok for proof of concept but I imagine it would get pretty cumbersome to have to pre-define the grid shapes, and I also suspect the performance would be pretty slow. if you want to look into hooking an extJS grid into the output data frame of an R function, look into the code of the Rlkabkey labkey.saveBatch.R function in the remoteapi folder. The code takes a data frame and turns it into a set of linked list objects in R, then calls the toJSON function in the rcurl library to turn it into Json. I think the format of our output json stream for a result set was modeled on the extJs grid needs, but I am not sure how close the input format is to the output format. I'd be interested in learning more about how you'd like this to work. Peter |
||