annotate shear_assemble.xml @ 8:8fac6c7d32fd

Copy reference fasta for shear sv to avoid GATK issue with symlinks
author Jim Johnson <jj@umn.edu>
date Tue, 22 Oct 2013 09:44:32 -0500
parents 8180f6b0249b
children 2620f7984418
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
8180f6b0249b Upgrade to SHEAR version 0.2.4
Jim Johnson <jj@umn.edu>
parents: 5
diff changeset
1 <tool id="shear_assemble" name="SHEAR-Assemble" version="0.0.3">
0
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
2 <description>create a personal genome from sdi</description>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
3 <requirements>
7
8180f6b0249b Upgrade to SHEAR version 0.2.4
Jim Johnson <jj@umn.edu>
parents: 5
diff changeset
4 <requirement type="package" version="0.2.4">shear</requirement>
0
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
5 </requirements>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
6 <!--
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
7 <version_command></version_command>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
8 -->
4
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
9 <command interpreter="python">
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
10 shear_wrapper.py -j \$SHEAR_JAR_PATH/SHEAR.jar --command assemble
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
11 -p $prefix
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
12 -s $sdi_file
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
13 #if $genomeSource.refGenomeSource == 'indexed':
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
14 -f $genomeSource.ref_fastas.fields.path
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
15 #else:
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
16 -f $genomeSource.ref_fasta
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
17 #end if
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
18 -o $output_fasta
0
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
19 </command>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
20 <inputs>
4
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
21 <param name="prefix" type="text" value="shear_assemble" label="Prefix for all generated files">
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
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>
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
23 </param>
0
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
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."/>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
25 <!-- reference data -->
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
26 <conditional name="genomeSource">
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
27 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a cached file?">
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
28 <option value="indexed">Use a cached reference genome</option>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
29 <option value="history">Use one from the history</option>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
30 </param>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
31 <when value="indexed">
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
32 <param name="ref_fastas" type="select" label="Select a reference genome">
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
33 <options from_data_table="all_fasta">
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
34 <filter type="sort_by" column="2" />
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
35 <validator type="no_options" message="No reference fasta files are available" />
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
36 </options>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
37 </param>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
38 </when>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
39 <when value="history">
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
40 <param name="ref_fasta" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
41 </when>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
42 </conditional>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
43 </inputs>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
44 <stdio>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
45 <exit_code range="1:" level="fatal" description="Error" />
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
46 </stdio>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
47 <outputs>
4
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
48 <data format="fasta" name="output_fasta" label="${tool.name} on ${on_string}: ${prefix}.fa" />
0
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
49 </outputs>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
50 <tests>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
51 <test>
4
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
52 <param name="prefix" value="shear_assembly" />
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
53 <param name="sdi_file" value="shear_sv.sdi" ftype="shear.sdi" />
0
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
54 <param name="refGenomeSource" value="history"/>
4
a82400332451 Use shear_wrapper.py to generate reference indexes when needed
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
55 <param name="ref_fasta" value="syn.fa" ftype="fasta" />
0
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
56 <output name="output_fasta" file="simulated-data.fa"/>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
57 </test>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
58 </tests>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
59 <help>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
60 SHEAR-Assemble takes a reference genome and a *.sdi file from SHEAR-SV to create a new personal genome.
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
61 </help>
ea76da1e7281 Uploaded
jjohnson
parents:
diff changeset
62 </tool>