Re: [galaxy-dev] binary data types get corrupted on upload

2012-12-07 Thread John Chilton
Hi Ido,

Is .sqlite a common compressed file type (i.e. zip, gzip, or bz2) just
with a different extension?

If it is, I think upload.py is always going to try to decompress it.
That that has long been a behavior I would like to be able to disable
on a per file type basis. If this is the problem and the galaxy team
agrees to accept a patch for address the issue, I would be happy to
try to implement the fix.

-John

On Fri, Dec 7, 2012 at 8:39 AM, Ido Tamir ta...@imp.ac.at wrote:

 from http://wiki.galaxyproject.org/Admin/Datatypes/Adding%20Datatypes
 I thought that adding subclass=True in datatypes_conf.xml would be enough 
 to register my new
 type, but it seems like I stil have to add an entry in binary.py for it to be 
 recognized. But its still corrupted.

 thank you very much,
 ido

 --
 Tool: Upload File
 Name:   hg19.sqlite
 Created:Dec 07, 2012
 Filesize:   11.1 MB
 Dbkey:  hg19
 Format: sqlite
___
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:

  http://lists.bx.psu.edu/


Re: [galaxy-dev] binary data types get corrupted on upload

2012-12-07 Thread Ido Tamir
The specification does not mention zip, gzip or bz2 [1] and
I am pretty confident, that it does not in addition compresses
its content with zip etc..
It starts with a header SQLite format 3\000 
which is visible in my file with less.

ido

[1]http://www.sqlite.org/fileformat.html

On Dec 7, 2012, at 3:50 PM, John Chilton wrote:

 Hi Ido,
 
 Is .sqlite a common compressed file type (i.e. zip, gzip, or bz2) just
 with a different extension?
 
 If it is, I think upload.py is always going to try to decompress it.
 That that has long been a behavior I would like to be able to disable
 on a per file type basis. If this is the problem and the galaxy team
 agrees to accept a patch for address the issue, I would be happy to
 try to implement the fix.
 
 -John
 
 On Fri, Dec 7, 2012 at 8:39 AM, Ido Tamir ta...@imp.ac.at wrote:
 
 from http://wiki.galaxyproject.org/Admin/Datatypes/Adding%20Datatypes
 I thought that adding subclass=True in datatypes_conf.xml would be enough 
 to register my new
 type, but it seems like I stil have to add an entry in binary.py for it to 
 be recognized. But its still corrupted.
 
 thank you very much,
 ido
 
 --
 Tool: Upload File
 Name:   hg19.sqlite
 Created:Dec 07, 2012
 Filesize:   11.1 MB
 Dbkey:  hg19
 Format: sqlite


___
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:

  http://lists.bx.psu.edu/