Hello! I have the same question as Ido Tamir had about a year ago: Dec 07, 2012; 9:53am [Ido Tamir] <http://user.list.galaxyproject.org/template/NamlServlet.jtp?macro=user_nodes&user=317241> Ido Tamir<http://user.list.galaxyproject.org/template/NamlServlet.jtp?macro=user_nodes&user=317241> conditional in Compute tool Hi, is it possible to do a conditional in the compute tool? something like: "a" if c1 == 4 else "b" or if c1 == 4 "a" else "b" or c1 == 4 ? "a" else "b" thank you very much, ido Thank you very much, Alex
Hi Alex, No, instead try: 1. "Filter and Sort -> Filter" - run twice 2. "Text Manipulation -> Add" - run twice 3. "Text Manipulation ->Concatinate" - run once 4. Optional: extract this method into a workflow (History menu), and save for future use - in effect creating your own custom tool. The workflow can even be saved onto the Tool Menu (on the Workflow home page, click on "Other options -> Configure your workflow menu" - is a nice short cut). Then sort, restore metadata, etc. as needed. Hopefully this helps, Jen Galaxy team On 11/7/13 11:29 AM, Leontovich, Alexey A., Ph.D. wrote:
Hello!
I have the same question as Ido Tamir had about a year ago:
/Dec 07, 2012; 9:53am //Ido Tamir/ <http://user.list.galaxyproject.org/template/NamlServlet.jtp?macro=user_nodes&user=317241>/Ido Tamir <http://user.list.galaxyproject.org/template/NamlServlet.jtp?macro=user_nodes&user=317241> conditional in Compute tool /
/Hi, is it possible to do a conditional in the compute tool? something like:
"a" if c1 == 4 else "b" or if c1 == 4 "a" else "b" or c1 == 4 ? "a" else "b"
thank you very much, ido /
Thank you very much,
Alex
___________________________________________________________ The Galaxy User list should be used for the discussion of Galaxy analysis and other features on the public server at usegalaxy.org. Please keep all replies on the list by using "reply all" in your mail client. For discussion of local Galaxy instances and the Galaxy source code, please use the Galaxy Development list:
http://lists.bx.psu.edu/listinfo/galaxy-dev
To manage your subscriptions to this and other Galaxy lists, please use the interface at:
To search Galaxy mailing lists use the unified search at:
-- Jennifer Hillman-Jackson http://galaxyproject.org
participants (2)
-
Jennifer Jackson
-
Leontovich, Alexey A., Ph.D.