Question: Custom Wrapper unable to find 'read_length'
0
djevo1 • 60 wrote:
I have designed the following wrapper for a tool, however galaxy is giving the error Cannot Find: 'read_type' I am not sure what the issue with it is.
<tool id="miso" name="Miso" version="1.0.0">
<description>Alternative splicing analysis</description>
<version_command>python /home/eclark28/galaxy_production/python/lib/python2.7/site-packages/misopy/miso.py --version
</version_command>
<command>
<![CDATA[
mkdir -p '${output.files_path}/indexed_gff' &&
mkdir -p '${output.files_path}/exonUtil' &&
mkdir -p '${output.files_path}/pe' &&
mkdir -p '${output.files_path}/miso' &&
~/galaxy_production/python/bin/index_gff
--index
'${input_gff}'
'${output.files_path}/indexed_gff'
#if str($read_type) == "paired":
&& /home/eclark28/galaxy_production/python/bin/exon_utils
--get-const-exons
'${master_input_gff}'
--min-exon-size '${exon_size}'
--output-dir '${output.files_path}/exonUtil'
&& ~/galaxy_production/python/bin/pe_utils
--compute-insert-len
'${bam_file}'
'${output.files_path}/exonUtil/${master_input_gff}.min_${exon_size}.const_exons.gff'
--output-dir '${output.files_path}/pe'
#end if
&& python /home/eclark28/galaxy_production/python/lib/python2.7/site-packages/misopy/miso.py
--run
'${output.files_path}/indexed_gff'
'${bam_file}'
--output-dir '${output.files_path}/miso'
--read-len '${read_length}'
#if str($read_type) == "paired":
--paired-ended `'${output.files_path}/pe/insert-dist/${master_input_gff}.insert_len' | parseExonUtil.pl`
#end if
--use-cluster && tree -H ./ ${output}
]]>
</command>
<inputs>
<section name="basicOptions" title="Basic Options" expanded="True">
<param name="bam_file" type="data" label="BAM File" />
<param name="input_gff" type="data" label="Input GFF" />
<param name="exon_size" type="integer" label="Exon Size" value="1000" />
<param name="read_length" type="integer" label="Read Lenth" value="99" />
<conditional name="library">
<param name="read_type" type="select" label="Are the reads single or paired-end?">
<option value="single">Single-end</option>
<option value="paired">Paired-end</option>
</param>
<when value="paired">
<param name="master_input_gff" type="data" label="Master GFF" />
</when>
<when value="single">
</when>
</conditional>
</section>
</inputs>
<outputs>
<data format="html" name="output" />
</outputs>
</tool>
ADD COMMENT
• link
•
modified 2.1 years ago
by
y.hoogstrate • 460
•
written
2.1 years ago by
djevo1 • 60
ADD REPLY
• link
written
2.1 years ago by
djevo1 • 60