Mercurial > repos > jjohnson > shear
comparison shear_assemble.xml @ 0:65255beda972
Uploaded
author | jjohnson |
---|---|
date | Fri, 08 Nov 2013 16:23:10 -0500 |
parents | |
children | 3cbbffb3ae47 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:65255beda972 |
---|---|
1 <tool id="shear_assemble" name="SHEAR-Assemble" version="0.0.5"> | |
2 <description>create a personal genome from sdi</description> | |
3 <requirements> | |
4 <requirement type="package" version="0.2.5">shear</requirement> | |
5 </requirements> | |
6 <!-- | |
7 <version_command></version_command> | |
8 --> | |
9 <command interpreter="python"> | |
10 shear_wrapper.py -j \$SHEAR_JAR_PATH/SHEAR.jar --command assemble | |
11 -p $prefix | |
12 -s $sdi_file | |
13 #if $genomeSource.refGenomeSource == 'indexed': | |
14 -f $genomeSource.ref_fastas.fields.path | |
15 #else: | |
16 -f $genomeSource.ref_fasta | |
17 #end if | |
18 -o $output_fasta | |
19 </command> | |
20 <inputs> | |
21 <param name="prefix" type="text" value="shear_assemble" label="Prefix for all generated files"> | |
22 <validator type="regex" message="Prefix should start with a letter and contain only letter, digit, and '_' or '-' characters">[a-zA-Z0-9][_a-zA-Z0-9-]*</validator> | |
23 </param> | |
24 <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."/> | |
25 <!-- reference data --> | |
26 <conditional name="genomeSource"> | |
27 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a cached file?"> | |
28 <option value="indexed">Use a cached reference genome</option> | |
29 <option value="history">Use one from the history</option> | |
30 </param> | |
31 <when value="indexed"> | |
32 <param name="ref_fastas" type="select" label="Select a reference genome"> | |
33 <options from_data_table="all_fasta"> | |
34 <filter type="sort_by" column="2" /> | |
35 <validator type="no_options" message="No reference fasta files are available" /> | |
36 </options> | |
37 </param> | |
38 </when> | |
39 <when value="history"> | |
40 <param name="ref_fasta" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" /> | |
41 </when> | |
42 </conditional> | |
43 </inputs> | |
44 <stdio> | |
45 <exit_code range="1:" level="fatal" description="Error" /> | |
46 </stdio> | |
47 <outputs> | |
48 <data format="fasta" name="output_fasta" label="${tool.name} on ${on_string}: ${prefix}.fa" /> | |
49 </outputs> | |
50 <tests> | |
51 <test> | |
52 <param name="prefix" value="shear_assembly" /> | |
53 <param name="sdi_file" value="shear_sv.sdi" ftype="shear.sdi" /> | |
54 <param name="refGenomeSource" value="history"/> | |
55 <param name="ref_fasta" value="syn.fa" ftype="fasta" /> | |
56 <output name="output_fasta" file="simulated-data.fa"/> | |
57 </test> | |
58 </tests> | |
59 <help> | |
60 SHEAR-Assemble takes a reference genome and a *.sdi file from SHEAR-SV to create a new personal genome. | |
61 </help> | |
62 </tool> |