[galaxy-dev] Filter tool: how to override automatic guessing of column types ?

2013-02-22 Thread Marc Logghe
Hi, I have an issue with filtering using the Filter tool in the sense that the first line is considered invalid and I think it has to do with the automatic guessing of column types. The condition is like: c4 !='XXX' The value of c4 for the first line is 'NA' When the paster.log is checked one can

Re: [galaxy-dev] Filter tool: how to override automatic guessing of column types ?

2013-02-22 Thread Marc Logghe
Hi Daniel, Thanks for the answer. In my hands it does not work unfortunately but I'm a total python dummy. Marc From: Daniel Blankenberg [mailto:d...@bx.psu.edu] Sent: Friday, February 22, 2013 4:10 PM To: Marc Logghe Cc: galaxy-dev@lists.bx.psu.edu Subject: Re: [galaxy-dev] Filter tool: h

Re: [galaxy-dev] Filter tool: how to override automatic guessing of column types ?

2013-02-22 Thread Daniel Blankenberg
t; Sent: Friday, February 22, 2013 4:10 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, > > You can force the metadata detection to search your entire file

Re: [galaxy-dev] Filter tool: how to override automatic guessing of column types ?

2013-02-22 Thread Marc Logghe
From: Daniel Blankenberg [mailto:d...@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

Re: [galaxy-dev] Filter tool: how to override automatic guessing of column types ?

2013-02-22 Thread Daniel Blankenberg
Hi Marc, You can force the metadata detection to search your entire file by adding a new set_meta method to your datatype class, e.g. (untested): def set_meta( self, *args, **kwd ): kwd['max_data_lines'] = None kwd['max_guess_type_data_lines'] = None return super( Clo