On Wed, Jan 23, 2013 at 3:51 PM, Ross <ross.lazarus(a)gmail.com> wrote:
Using format="rda" will restrict the list to history items of the
datatype - but ONLY if the rda datatype has been defined!
The easiest way to do that is to define a new datatype in datatypes_conf.xml
and since rData is binary, you should subclass binary.
Something like (untested - especially the mimetype !)
<datatype extension="rda" type="galaxy.datatypes.binary:Binary"
mimetype="application/x-rlang-transport" subclass="True" />
might work. A server restart is always required to load any new datatypes.
It works! I changed the mime type to application/x-gzip, since
serialized R objects are gzipped.
On Thu, Jan 24, 2013 at 10:41 AM, Dan Tenenbaum <dtenenba(a)fhcrc.org> wrote:
> I have a tool wrapper with a <param> of type="data".
> Currently, this renders as a text box with a drop down list that has
> 52 items in it (the number of things I have in my history, I guess).
> I'd like to filter this list so that only some items in the history
> (in my case any item whose name ends with '.rda') are shown in this
> It seems like maybe the 'format' parameter to the 'param' tag is
> I want, but:
> 1) I tried format="rda" and that didn't seem to change anything.
> 2) "rda" is not in the datatypes.conf file which the documentation
> suggests is required?
> (.rda is an extension used for serialized R objects.)
> The tool I'm working on only accepts rda files as input and the reason
> I'm asking for this is that it is all too easy to accidentally feed it
> a file of some other type. If the dropdown could be filtered so that
> only items which will work with the tool are shown, that would be
> Is there a way to do that?
> Please keep all replies on the list by using "reply all"
> in your mail client. To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
Ross Lazarus MBBS MPH;
Head, Medical Bioinformatics, BakerIDI; Tel: +61 385321444