Question: What Are The Possible Computations And What Are The Commands For "Compute An Expression On Every Row"? Thanks!
0
gravatar for Halfdan Rydbeck
9.3 years ago by
Halfdan Rydbeck • 10 wrote:
What are the possible computations and what are the commands for "Compute <http: main.g2.bx.psu.edu="" tool_runner?tool_id="Add_a_column1"> an expression on every row"? Thanks! Halfdan Rydbeck
• 754 views
ADD COMMENT • link • modified 9.2 years ago by Greg Von Kuster • 840 • written 9.3 years ago by Halfdan Rydbeck • 10
0
gravatar for Greg Von Kuster
9.2 years ago by
Greg Von Kuster • 840 wrote:
Hello Halfdan, The "Compute an expression on every row" tool supports basic Python language constructs. There is extensive on-line documentation describing these, perhaps a good one to start with is: http://docs.python.org/library/stdtypes.html Greg Von Kuster Galaxy Development Team
ADD COMMENT • link written 9.2 years ago by Greg Von Kuster • 840

Hi Greg:

Maybe this is out of date. Based on the following experiment, I think there must be some  limitations on which python expressions are supported. 

e.g. when i attempt to calculate this value str(c2)[11] of a tabular field galaxy reports 

Invalid expression

So at least python's slice feature is not available. (or I've misunderstood something). 

ADD REPLY • link written 3.7 years ago by Brad Langhorst • 100
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 178 users visited in the last hour