comparison shear_assemble.xml @ 0:ea76da1e7281

Uploaded
author jjohnson
date Fri, 05 Jul 2013 15:22:04 -0400
parents
children a82400332451
comparison
equal deleted inserted replaced
-1:000000000000 0:ea76da1e7281
1 <tool id="shear_assemble" name="SHEAR-Assemble" version="0.0.1">
2 <description>create a personal genome from sdi</description>
3 <requirements>
4 <requirement type="package" version="0.1.2">shear</requirement>
5 </requirements>
6 <!--
7 <version_command></version_command>
8 -->
9 <command>java -jar \$SHEAR_JAR_PATH/SHEAR.jar assemble -s $sdi_file
10 #if $genomeSource.refGenomeSource == 'indexed':
11 -f $genomeSource.ref_fastas.fields.path
12 #else:
13 -f $genomeSource.ref_fasta
14 #end if
15 -o $output_fasta
16 </command>
17 <inputs>
18 <param name="sdi_file" type="data" format="shear.sdi" label="SDI file produced by SHEAR's 'sv' command containing the SVs to use to create the new genomic sequence."/>
19 <!-- reference data -->
20 <conditional name="genomeSource">
21 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a cached file?">
22 <option value="indexed">Use a cached reference genome</option>
23 <option value="history">Use one from the history</option>
24 </param>
25 <when value="indexed">
26 <param name="ref_fastas" type="select" label="Select a reference genome">
27 <options from_data_table="all_fasta">
28 <filter type="sort_by" column="2" />
29 <validator type="no_options" message="No reference fasta files are available" />
30 </options>
31 </param>
32 </when>
33 <when value="history">
34 <param name="ref_fasta" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
35 </when>
36 </conditional>
37 </inputs>
38 <stdio>
39 <exit_code range="1:" level="fatal" description="Error" />
40 </stdio>
41 <outputs>
42 <data format="fasta" name="output_fasta" label="${tool.name} on ${on_string}: personal genome" />
43 </outputs>
44 <tests>
45 <test>
46 <param name="sdi_file" ftype="shear.sdi" value="shear_sv.sdi"/>
47 <param name="refGenomeSource" value="history"/>
48 <param name="ref_fasta" ftype="fasta" value="syn.fa"/>
49 <output name="output_fasta" file="simulated-data.fa"/>
50 </test>
51 </tests>
52 <help>
53 SHEAR-Assemble takes a reference genome and a *.sdi file from SHEAR-SV to create a new personal genome.
54 </help>
55 </tool>