Hi Everyone, I have encountered a problem and I don't know how to fix it. We have built a Galaxy instance on a couple of machines here and have built the XML files to use a couple of tools in Galaxy. The input of one of these is a Suffix Array (a binary file). Unfortunately, when I try and upload the Suffix Array, I get the following error message: The uploaded binary file contains inappropriate content My gut feeling is that it is related to Galaxy trying to preview the file and not being able to determine the type. Is there any way around this? I can provide the file and the tool if you need to investigate it further. Thanks, Darren Cullerne Computational Biology CSIRO Plant Industry x5042 +61 2 62465042 darren.cullerne@csiro.au<mailto:darren.cullerne@csiro.au>
Hi In your_galaxy_root_path/lib/galaxy/datatypes/binary.py try adding the extension of your suffix array file type in the unsniffable_binary_formats array. It would be a good idea to add a class for this file type here too and make sure the datatypes_conf.xml file refers to it. Hope that helps L-A Darren.Cullerne@csiro.au wrote:
Hi Everyone,
I have encountered a problem and I don’t know how to fix it.
We have built a Galaxy instance on a couple of machines here and have built the XML files to use a couple of tools in Galaxy. The input of one of these is a Suffix Array (a binary file). Unfortunately, when I try and upload the Suffix Array, I get the following error message:
/The uploaded binary file contains inappropriate content/
My gut feeling is that it is related to Galaxy trying to preview the file and not being able to determine the type. Is there any way around this? I can provide the file and the tool if you need to investigate it further.
Thanks,
Darren Cullerne
Computational Biology
CSIRO Plant Industry
x5042
+61 2 62465042
darren.cullerne@csiro.au <mailto:darren.cullerne@csiro.au>
------------------------------------------------------------------------
___________________________________________________________ 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:
Hi Darren I assume, you have created a new data type https://bitbucket.org/galaxy/galaxy-central/wiki/AddingDatatypes You can now disable the 'sniffing' by adding the data type to the following line: unsniffable_binary_formats = [ 'ab1', 'scf' ] in: ~/galaxy-dist/lib/galaxy/datatypes/binary.py I hope this helps Regards, Hans On 05/06/2011 03:59 AM, Darren.Cullerne@csiro.au wrote:
Hi Everyone,
I have encountered a problem and I don't know how to fix it.
We have built a Galaxy instance on a couple of machines here and have built the XML files to use a couple of tools in Galaxy. The input of one of these is a Suffix Array (a binary file). Unfortunately, when I try and upload the Suffix Array, I get the following error message:
The uploaded binary file contains inappropriate content
My gut feeling is that it is related to Galaxy trying to preview the file and not being able to determine the type. Is there any way around this? I can provide the file and the tool if you need to investigate it further.
Thanks,
Darren Cullerne Computational Biology CSIRO Plant Industry
x5042 +61 2 62465042
darren.cullerne@csiro.au<mailto:darren.cullerne@csiro.au>
___________________________________________________________ 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:
participants (3)
-
Darren.Cullerne@csiro.au
-
Hans-Rudolf Hotz
-
Louise-Amelie Schmitt