i would like to nest different conditional statements in a tools xml file: <inputs> <conditional name="tophat_input"> <param name="type1" type="select" label="input file format" optional="false"> <option value="fasta" selected="true">FASTA</option> <option value="fastqsolexa">FASTQ-Solexa</option> <option value="fastqsanger">FASTQ-Sanger</option> </param> <when value="fasta"> <conditional name="paired_end_fasta"> <param name="type2" type="select" label="Paired end reads"> <option value="yes">Yes</option> <option value="no" selected="true">No</option> </param> <when value="yes"> .... how do i access type2? #if $tophat_input.paired_end_fasta.type2=="yes": #--value=test #end if doesnt work! thanks mat
I believe this should work. Can you post your complete tool config (especially the complete template for generating the command line)? On Sep 15, 2009, at 11:51 AM, Matthias Dodt wrote:
i would like to nest different conditional statements in a tools xml file:
<inputs> <conditional name="tophat_input"> <param name="type1" type="select" label="input file format" optional="false"> <option value="fasta" selected="true">FASTA</option> <option value="fastqsolexa">FASTQ-Solexa</option> <option value="fastqsanger">FASTQ-Sanger</option> </param> <when value="fasta">
<conditional name="paired_end_fasta"> <param name="type2" type="select" label="Paired end reads"> <option value="yes">Yes</option> <option value="no" selected="true">No</option> </param> <when value="yes">
....
how do i access type2?
#if $tophat_input.paired_end_fasta.type2=="yes": #--value=test #end if
doesnt work!
thanks
mat _______________________________________________ galaxy-user mailing list galaxy-user@bx.psu.edu http://mail.bx.psu.edu/cgi-bin/mailman/listinfo/galaxy-user
participants (2)
-
James Taylor
-
Matthias Dodt