Hi, The search for requests is giving me the following error. Interesting because if I use the Advanced Search works well. Do you have any ideas where I should look? Other than this, I pretty much have a working version for Tracking Samples via Galaxy. We are mounting our run directory directly to the server running galaxy so at this point we do not need to transfer anything. To connect a sample to the tracking system, we might use a data library with a local path to that sample. Seems reasonable? Thanks in advance. Victor AttributeError: 'StateColumn' object has no attribute 'get_filter' Source Template Extra Data Traceback Error Traceback: View as: Interactive | Text | XML (full) ⇝ AttributeError: 'StateColumn' object has no attribute 'get_filter' URL: http://mir-13:8087/requests_admin/list?f-deleted=False&f-state=New&f-name=All&f-desc=All&sort=-update_time&async=false&page=1&f-free-text-search=cells& Module weberror.evalexception.middleware:364 in respond view
app_iter = self.application(environ, detect_start_response) Module paste.debug.prints:98 in __call__ view environ, self.app) Module paste.wsgilib:539 in intercept_output view app_iter = application(environ, replacement_start_response) Module paste.recursive:80 in __call__ view return self.application(environ, start_response) Module paste.httpexceptions:632 in __call__ view return self.application(environ, start_response) Module galaxy.web.framework.base:145 in __call__ view body = method( trans, **kwargs ) Module galaxy.web.framework:139 in decorator view return func( self, trans, *args, **kwargs ) Module galaxy.web.controllers.requests_admin:343 in list view return self.request_grid( trans, **kwd ) Module galaxy.web.framework.helpers.grids:138 in __call__ view query = column.filter( trans, trans.user, query, column_filter ) Module galaxy.web.framework.helpers.grids:593 in filter view clause_list.append( column.get_filter( trans, user, column_filter ) ) AttributeError: 'StateColumn' object has no attribute 'get_filter'
Extra Features
Display the lines of code near each part of the traceback Show a debug prompt to allow you to directly debug the code at the traceback Re-GET Page
On Oct 18, 2010, at 12:40 PM, Kelly Vincent wrote:
Yi,
Yes, it is totally fine to ask questions like this.
To answer your question, unfortunately, there is a weakness in the testing framework that limits the way repeat elements can be tested, but I believe the testing you want to do can be done. The only way to test a tool with a repeat element is with a test that includes exactly one _set_ for each repeat. (When you run the tool, you could include 0, 1, or more than 1 sets, but you can only test with 1.)
In your case, you have a repeat element that requires two files, as follows: <repeat name="replicates" title="Replicate"> <param name="tfile" type="data" label="Treatment file"/> <param name="cfile" type="data" label="Control file"/> </repeat> So your test should include something like: <test> ... <param name="tfile" value="ma2c_treatment_ce4.pair" /> <param name="cfile" value="controlfile.name" /> ... </test> Both files need to be included and only one pair (set) can be. The parameter names in the test should exactly match the names in the input parameter declaration. Note that the syntax for the command line should refer to the repeat items something like this: #for $r in $replicates ${r.tfile} ${r.cfile} #end for
If you want to see a simple example, tools/filters/sorter.xml has a fairly complex repeat element with multiple items and tests that run.
Let us know if you have any other questions.
Regards, Kelly
On Oct 18, 2010, at 11:39 AM, WANGYi wrote:
Hi,
Our team is now testing our integrated tools under galaxy testing framework.
At present, we are trying to test the '<repeat>' elements in one of our tools, e.g. <repeat name="replicates" title="Replicate"> <param name="tfile" type="data" label="Treatment file"/> <param name="cfile" type="data" label="Control file"/> </repeat>
we tried add the following section into the <test> tag and ran the test, but did not make it. <test> <param name="tfile" value="ma2c_treatment_ce4.pair" /> <param name="tfile" value="ma2c_treatment_ce5.pair" /> </test>
after searching all over the internet, we were not able to come up with any solution (maybe we missed).
I dont know if it proper to ask you a question like this. but we are kinda desprated for this issue. Could you please kindly tell us, how to write the test section when there are two or more 'replicates' inputed?
Appreciate so much.
Regards Yi _______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev