annotate shear_sv.xml @ 3:7506693aff3b default tip

Update to SHEAR version 0.2.11
author Jim Johnson <jj@umn.edu>
date Mon, 14 Jul 2014 10:22:20 -0500
parents b84716da5595
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
65255beda972 Uploaded
jjohnson
parents:
diff changeset
1 <?xml version="1.0"?>
3
7506693aff3b Update to SHEAR version 0.2.11
Jim Johnson <jj@umn.edu>
parents: 2
diff changeset
2 <tool id="shear_sv" name="SHEAR-SV" version="0.0.11">
0
65255beda972 Uploaded
jjohnson
parents:
diff changeset
3 <description>find SVs and estimate the heterogeneity levels from a BAM</description>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
4 <requirements>
3
7506693aff3b Update to SHEAR version 0.2.11
Jim Johnson <jj@umn.edu>
parents: 2
diff changeset
5 <requirement type="package" version="0.2.11">shear</requirement>
1
3cbbffb3ae47 Update to shear version 0.2.7
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
6 <requirement type="package" version="0.1.19">samtools</requirement>
0
65255beda972 Uploaded
jjohnson
parents:
diff changeset
7 <requirement type="package" version="0.6.2">bwa</requirement>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
8 <requirement type="package" version="1.0.1">crest</requirement>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
9 <requirement type="package" version="latest">blat_server</requirement>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
10 <requirement type="package" version="3">cap3</requirement>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
11 </requirements>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
12 <!--
65255beda972 Uploaded
jjohnson
parents:
diff changeset
13 <version_command></version_command>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
14 -->
65255beda972 Uploaded
jjohnson
parents:
diff changeset
15 <command interpreter="python">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
16 shear_wrapper.py -j \$SHEAR_JAR_PATH/SHEAR.jar --command sv
65255beda972 Uploaded
jjohnson
parents:
diff changeset
17 -p $prefix ## used in gerenating ouput file names
65255beda972 Uploaded
jjohnson
parents:
diff changeset
18 -b $bamfile
65255beda972 Uploaded
jjohnson
parents:
diff changeset
19 #if $genomeSource.refGenomeSource == 'indexed':
65255beda972 Uploaded
jjohnson
parents:
diff changeset
20 -f $genomeSource.ref_fastas.fields.path
65255beda972 Uploaded
jjohnson
parents:
diff changeset
21 -i $genomeSource.bwa_indices.fields.path
65255beda972 Uploaded
jjohnson
parents:
diff changeset
22 -t $genomeSource.twobit_indices.fields.path
65255beda972 Uploaded
jjohnson
parents:
diff changeset
23 #elif $genomeSource.refGenomeSource == 'svidx':
65255beda972 Uploaded
jjohnson
parents:
diff changeset
24 -f $genomeSource.svidx.extra_files_path/${genomeSource.svidx.metadata.base_name}.fa
65255beda972 Uploaded
jjohnson
parents:
diff changeset
25 -i $genomeSource.svidx.extra_files_path/${genomeSource.svidx.metadata.base_name}.fa
65255beda972 Uploaded
jjohnson
parents:
diff changeset
26 -t $genomeSource.svidx.extra_files_path/${genomeSource.svidx.metadata.base_name}.2bit
65255beda972 Uploaded
jjohnson
parents:
diff changeset
27 #else:
65255beda972 Uploaded
jjohnson
parents:
diff changeset
28 -f $genomeSource.ref_fasta
65255beda972 Uploaded
jjohnson
parents:
diff changeset
29 #if $genomeSource.save_svidx:
65255beda972 Uploaded
jjohnson
parents:
diff changeset
30 -D $sv_idx.extra_files_path
65255beda972 Uploaded
jjohnson
parents:
diff changeset
31 #end if
65255beda972 Uploaded
jjohnson
parents:
diff changeset
32 #end if
65255beda972 Uploaded
jjohnson
parents:
diff changeset
33 #if $region and $region.__str__.strip() != '':
65255beda972 Uploaded
jjohnson
parents:
diff changeset
34 -r $region
65255beda972 Uploaded
jjohnson
parents:
diff changeset
35 #end if
65255beda972 Uploaded
jjohnson
parents:
diff changeset
36 $sv_only
65255beda972 Uploaded
jjohnson
parents:
diff changeset
37 </command>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
38 <inputs>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
39 <param name="bamfile" type="data" format="bam" label="BAM alignment file containing the input sequences to the assembly."/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
40 <param name="prefix" type="hidden" value="shear_sv" label="Prefix for all generated files"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
41 <!--
65255beda972 Uploaded
jjohnson
parents:
diff changeset
42 <param name="prefix" type="text" value="shear_sv" label="Prefix for all generated files">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
43 <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>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
44 </param>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
45 -->
65255beda972 Uploaded
jjohnson
parents:
diff changeset
46 <!-- reference data -->
65255beda972 Uploaded
jjohnson
parents:
diff changeset
47 <conditional name="genomeSource">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
48 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a cached file?">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
49 <option value="indexed" selected="true">Use a cached reference genome</option>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
50 <option value="history">Use fasta from the history</option>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
51 <option value="svidx">Use SHEAR sv index from the history</option>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
52 </param>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
53 <when value="indexed">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
54 <param name="ref_fastas" type="select" label="Select a reference genome fasta">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
55 <options from_data_table="all_fasta">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
56 <filter type="sort_by" column="2" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
57 <validator type="no_options" message="No reference fasta files are available" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
58 </options>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
59 </param>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
60 <param name="twobit_indices" type="select" label="Select the reference genome 2bit">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
61 <options from_data_table="twobit">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
62 <filter type="sort_by" column="0" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
63 <!--
65255beda972 Uploaded
jjohnson
parents:
diff changeset
64 <filter type="data_meta" ref="ref_fastas" key="dbkey" column="0" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
65 -->
65255beda972 Uploaded
jjohnson
parents:
diff changeset
66 <validator type="no_options" message="No indexes are available" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
67 </options>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
68 </param>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
69 <param name="bwa_indices" type="select" label="Select the reference genome bwa indices">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
70 <options from_data_table="bwa_indexes">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
71 <filter type="sort_by" column="2" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
72 <!--
65255beda972 Uploaded
jjohnson
parents:
diff changeset
73 <filter type="data_meta" ref="ref_fastas" key="dbkey" column="0" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
74 -->
65255beda972 Uploaded
jjohnson
parents:
diff changeset
75 <validator type="no_options" message="No indexes are available" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
76 </options>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
77 </param>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
78 </when>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
79 <when value="history">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
80 <param name="ref_fasta" type="data" format="fasta" label="Select a reference from history" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
81 <param name="save_svidx" type="boolean" truevalue="yes" falsevalue="no" label="Save sv generated reference indexes"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
82 </when>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
83 <when value="svidx">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
84 <param name="svidx" type="data" format="shear.svidx" label="Select a reference from history" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
85 </when>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
86 </conditional>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
87 <param name="region" type="text" value="" optional="true" label="Region of the input alignment to analyze">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
88 <help>"chr1" for full chromosome or "chr1:10000-15000" for a particular region, including endpoints).
65255beda972 Uploaded
jjohnson
parents:
diff changeset
89 Coordinates are 1-based.
65255beda972 Uploaded
jjohnson
parents:
diff changeset
90 </help>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
91 <validator type="regex" message="format: chr1:100-200">^\w+(:\d+-\d+)?$</validator>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
92 </param>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
93 <param name="sv_only" type="boolean" truevalue="--sv-only" falsevalue="" checked="false" label="SV Only prediction mode."
65255beda972 Uploaded
jjohnson
parents:
diff changeset
94 help="Will skip SNP/INDEL prediction and only return *.sdi and *.report results for SVs."/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
95 </inputs>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
96 <stdio>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
97 <exit_code range="1:" level="fatal" description="Error" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
98 </stdio>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
99 <outputs>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
100 <data format="txt" name="report_snpindel" label="${tool.name} on ${on_string}: ${prefix}.snpindel.report" from_work_dir="shear_sv.snpindel.report">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
101 <filter>sv_only == False</filter>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
102 </data>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
103 <data format="txt" name="report_sv" label="${tool.name} on ${on_string}: ${prefix}.sv.report" from_work_dir="shear_sv.sv.report"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
104 <data format="txt" name="report_all" label="${tool.name} on ${on_string}: ${prefix}.all.report" from_work_dir="shear_sv.all.report">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
105 <filter>sv_only == False</filter>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
106 </data>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
107 <data format="shear.sdi" name="sdi_snpindel" label="${tool.name} on ${on_string}: ${prefix}.snpindel.sdi" from_work_dir="shear_sv.snpindel.sdi">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
108 <filter>sv_only == False</filter>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
109 </data>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
110 <data format="shear.sdi" name="sdi_sv" label="${tool.name} on ${on_string}: ${prefix}.sv.sdi" from_work_dir="shear_sv.sv.sdi"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
111 <data format="shear.sdi" name="sdi_all" label="${tool.name} on ${on_string}: ${prefix}.all.sdi" from_work_dir="shear_sv.all.sdi">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
112 <filter>sv_only == False</filter>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
113 </data>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
114 <data format="shear.svidx" name="sv_idx" label="${tool.name} on ${on_string}: ${prefix}.svidx">
65255beda972 Uploaded
jjohnson
parents:
diff changeset
115 <filter>genomeSource['refGenomeSource'] == 'history' and genomeSource['save_svidx'] == True</filter>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
116 </data>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
117 </outputs>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
118 <tests>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
119 <test>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
120 <param name="prefix" value="shear_test" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
121 <param name="bamfile" value="simulated-data.bam" ftype="bam" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
122 <param name="refGenomeSource" value="history"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
123 <param name="ref_fasta" value="syn.fa" ftype="fasta" />
65255beda972 Uploaded
jjohnson
parents:
diff changeset
124 <param name="save_svidx" value="false"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
125 <param name="sv_only" value="true"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
126 <output name="sdi_sv" file="shear_sv.sdi"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
127 <output name="report_sv" file="shear_sv.report"/>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
128 </test>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
129 </tests>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
130 <help>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
131 SHEAR-SV will process a BAM alignment file to find SVs and estimate the
65255beda972 Uploaded
jjohnson
parents:
diff changeset
132 heterogeneity level of those SVs. It will output a *.report file reporing the
65255beda972 Uploaded
jjohnson
parents:
diff changeset
133 SVs and their heterogeneity levels, and it will output a *.sdi file that can be
65255beda972 Uploaded
jjohnson
parents:
diff changeset
134 used for SHEAR-Assemble to reconstruct the new genome.
2
b84716da5595 Update to SHEAR v0.2.9
Jim Johnson <jj@umn.edu>
parents: 1
diff changeset
135
b84716da5595 Update to SHEAR v0.2.9
Jim Johnson <jj@umn.edu>
parents: 1
diff changeset
136 Please cite the following article:
b84716da5595 Update to SHEAR v0.2.9
Jim Johnson <jj@umn.edu>
parents: 1
diff changeset
137
b84716da5595 Update to SHEAR v0.2.9
Jim Johnson <jj@umn.edu>
parents: 1
diff changeset
138 Landman SR, Hwang TH, Silverstein KAT, Li Y, Dehm SM, Steinbach M, and Kumar V. SHEAR: sample heterogeneity estimation and assembly by reference. BMC Genomics 2014, 15:84.
b84716da5595 Update to SHEAR v0.2.9
Jim Johnson <jj@umn.edu>
parents: 1
diff changeset
139
0
65255beda972 Uploaded
jjohnson
parents:
diff changeset
140 </help>
65255beda972 Uploaded
jjohnson
parents:
diff changeset
141 </tool>