From: Daniel Blankenberg [mailto:dan@bx.psu.edu]
Sent: Friday, February 22, 2013 4:44 PM
To: Marc Logghe
Cc: galaxy-dev@lists.bx.psu.edu
Subject: Re: [galaxy-dev] Filter tool: how to override automatic guessing of column types ?

 

Hi Marc,

 

Ah, I think I see the issue here, and it has to do with an assumption being made that the first line is a undeclared header, which in your case is wrong.  Can you trying adding to your set_meta:

 

kwd['skip'] = 0

 

 

and then restart your sever and then create a new dataset with your tool?

 

 

 

OK, got it to work. Guess I combined both of your suggestions in a way. It ended up looking like this:

 

    def set_meta( self, dataset, overwrite = True, skip = None, max_data_lines = None, max_guess_type_data_lines = None, **kwd ):

        dataset.metadata.columns = 5

        dataset.metadata.column_types = ['str','str','int','str','int']

 

It might have worked after all in one of the previous attempts but I did not create a new dataset. I did like you suggested and now it works.

Thanks a lot, you saved my day !

Regards,

Marc

________________________________________
THIS E-MAIL MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE.
If the reader of this E-mail message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately at ablynx@ablynx.com. Thank you for your co-operation.
"NANOBODY" and "NANOCLONE" are registered trademarks of Ablynx N.V.
________________________________________