Functions must have a return value and can only be called when a value is needed, Actions do not need a return value and can be called independently. Afaik thats the only difference.
Functions dont need a return value if you set them to return "nothing"
actions will show up in the "actions" search list.
though with a function you can do ....
z = My_Calc_Function(x,y)
I have no idea what the difference is in most cases. I generally use functions, no real reason for it. Im sure theres a difference to them if you look at the actual script out put.
In GUI you can't use the return value of Actions, but you can use the return value of Functions and you can't call Functions as you would call normal Actions; in Galaxy I'd assume there is no difference.
In GUI you can't use the return value of Actions, but you can use the return value of Functions and you can't call Functions as you would call normal Actions; in Galaxy I'd assume there is no difference.
In Galaxy, there are only functions, you cannot even create an action definiton there. However when calling a Gui Function or a Gui Action, there is no difference, correct.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
They both do the same thing it seems they are called a bit different though. Is there any difference? What is better to use?
Functions must have a return value and can only be called when a value is needed, Actions do not need a return value and can be called independently. Afaik thats the only difference.
Functions dont need a return value if you set them to return "nothing"
actions will show up in the "actions" search list.
though with a function you can do ....
I have no idea what the difference is in most cases. I generally use functions, no real reason for it. Im sure theres a difference to them if you look at the actual script out put.
In GUI you can't use the return value of Actions, but you can use the return value of Functions and you can't call Functions as you would call normal Actions; in Galaxy I'd assume there is no difference.
In Galaxy, there are only functions, you cannot even create an action definiton there. However when calling a Gui Function or a Gui Action, there is no difference, correct.