Question: Conditional Statement
0
gravatar for Matthias Dodt
9.2 years ago by
Matthias Dodt • 110
Matthias Dodt • 110 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
rna-seq tophat • 815 views
ADD COMMENT • link • modified 9.2 years ago by James Taylor • 320 • written 9.2 years ago by Matthias Dodt • 110
0
gravatar for James Taylor
9.2 years ago by
James Taylor • 320
United States
James Taylor • 320 wrote:
I believe this should work. Can you post your complete tool config (especially the complete template for generating the command line)?
ADD COMMENT • link written 9.2 years ago by James Taylor • 320
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: 168 users visited in the last hour