comparison primsfilters.py @ 22:cd4f13119afa

Small fix in filters part and improvement in query_metexp time logging
author pieter.lukasse@wur.nl
date Thu, 06 Mar 2014 14:29:55 +0100
parents c068ed713eb9
children
comparison
equal deleted inserted replaced
21:19d8fd10248e 22:cd4f13119afa
19 settings mentioned above, all prims_metabolomics tools will be visible to 19 settings mentioned above, all prims_metabolomics tools will be visible to
20 all users. 20 all users.
21 """ 21 """
22 # for debugging: import pydevd;pydevd.settrace("L0136815.wurnet.nl") 22 # for debugging: import pydevd;pydevd.settrace("L0136815.wurnet.nl")
23 user = context.trans.user 23 user = context.trans.user
24 metabolomics_tools = [ "msclust2", "combine_output", "create_poly_model", "lookup_library", "NDIStext2tabular", "rankfilterGCMS_tabular", "filter_on_rank" ] 24 metabolomics_tools = [ "msclust2", "combine_output", "create_poly_model", "lookup_library",
25 "NDIStext2tabular", "rankfilterGCMS_tabular", "filter_on_rank",
26 "export_to_metexp_tabular", "query_metexp" ]
25 found_match = False 27 found_match = False
26 # iterate over the tool (partial)ids and look for a match (this is compatible with tool shed given ids): 28 # iterate over the tool (partial)ids and look for a match (this is compatible with tool shed given ids):
27 for partial_id in metabolomics_tools: 29 for partial_id in metabolomics_tools:
28 if tool.id.find("/"+ partial_id + "/") >= 0: 30 if tool.id.find("/"+ partial_id + "/") >= 0:
29 found_match = True 31 found_match = True