Re: [galaxy-dev] Running a different command based on selection in the tool

2014-03-20 Thread Nicola Soranzo
Hi Saba and Jens, : are not needed, they are optional, see http://www.cheetahtemplate.org/docs/users_guide_html/users_guide.html#SECTION00068 Maybe it's a problem with the left quotes around Use_Snapshot in the #if line? Nicola Il 2014-03-20 06:26 Keilwagen, Jens ha scritto:

Re: [galaxy-dev] Running a different command based on selection in the tool

2014-03-20 Thread Peter Cock
Hi all, It may be the comparison, I've sometimes found an explicit cast to str is required in this kind of situation. So, I would try: command #if str($source.source_select)==Use_Snapshot: cM-snapshot.sh $input $output #else cM.sh $m $b $ns $w $s $z $output #end if

Re: [galaxy-dev] Running a different command based on selection in the tool

2014-03-20 Thread Saba Sehrish
Hi all, For all the input parameters, we have to explicitly use $source.input, $source.m, etc instead of just using input, m, etc. Please see the code below that works. command #if $source.source_select==Use_Snapshot ./cM-snapshot.sh $source.input $output #else

Re: [galaxy-dev] Running a different command based on selection in the tool

2014-03-19 Thread Keilwagen, Jens
Hi Saba, there is a syntax error in the line of the #if. Please add : at the end and report whether the error still occurs. All the best, Jens Von: galaxy-dev-boun...@lists.bx.psu.edu [mailto:galaxy-dev-boun...@lists.bx.psu.edu] Im Auftrag von Saba Sehrish Gesendet: Mittwoch, 19. März 2014