Mercurial > repos > jjohnson > shear
comparison shear_sv.xml @ 0:ea76da1e7281
Uploaded
author | jjohnson |
---|---|
date | Fri, 05 Jul 2013 15:22:04 -0400 |
parents | |
children | a718ecb27e02 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ea76da1e7281 |
---|---|
1 <?xml version="1.0"?> | |
2 <tool id="shear_sv" name="SHEAR-SV" version="0.0.1"> | |
3 <description>find SVs and estimate the heterogeneity levels from a BAM</description> | |
4 <requirements> | |
5 <requirement type="package" version="0.1.2">shear</requirement> | |
6 <requirement type="package" version="0.1.18">samtools</requirement> | |
7 <requirement type="package" version="0.6.2">bwa</requirement> | |
8 <requirement type="package" version="1.0.1">crest</requirement> | |
9 <requirement type="package" version="latest">kent</requirement> | |
10 </requirements> | |
11 <!-- | |
12 <version_command></version_command> | |
13 --> | |
14 <command>java -jar \$SHEAR_JAR_PATH/SHEAR.jar sv -r $prefix | |
15 -b $bamfile | |
16 #if $genomeSource.refGenomeSource == 'indexed': | |
17 -f $genomeSource.ref_fastas.fields.path | |
18 -i $genomeSource.bwa_indices.fields.path | |
19 -t $genomeSource.twobit_indice.fields.paths | |
20 #else: | |
21 -f $genomeSource.ref_fasta | |
22 -i $genomeSource.bwa_index | |
23 -t $genomeSource.twobit | |
24 #end if | |
25 </command> | |
26 <inputs> | |
27 <param name="bamfile" type="data" format="bam" label="BAM alignment file containing the input sequences to the assembly."/> | |
28 <!-- reference data --> | |
29 <conditional name="genomeSource"> | |
30 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a cached file?"> | |
31 <option value="indexed" selected="true">Use a cached reference genome</option> | |
32 <option value="history">Use one from the history</option> | |
33 </param> | |
34 <when value="indexed"> | |
35 <param name="ref_fastas" type="select" label="Select a reference genome"> | |
36 <options from_data_table="all_fasta"> | |
37 <filter type="sort_by" column="2" /> | |
38 <validator type="no_options" message="No reference fasta files are available" /> | |
39 </options> | |
40 </param> | |
41 <param name="twobit_indices" type="select" label="Select a reference genome"> | |
42 <options from_data_table="twobit"> | |
43 <filter type="sort_by" column="0" /> | |
44 <filter type="data_meta" ref="ref_fastas" key="dbkey" column="0" /> | |
45 <validator type="no_options" message="No indexes are available" /> | |
46 </options> | |
47 </param> | |
48 <param name="bwa_indices" type="select" label="Select a reference genome"> | |
49 <options from_data_table="bwa_indexes"> | |
50 <filter type="sort_by" column="2" /> | |
51 <filter type="data_meta" ref="ref_fastas" key="dbkey" column="0" /> | |
52 <validator type="no_options" message="No indexes are available" /> | |
53 </options> | |
54 </param> | |
55 </when> | |
56 <when value="history"> | |
57 <param name="ref_fasta" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" /> | |
58 <param name="twobit" type="data" format="twobit" metadata_name="dbkey" label="Select a reference from history" /> | |
59 <param name="bwa_index" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" /> | |
60 </when> | |
61 </conditional> | |
62 <param name="prefix" type="hidden" value="shear_sv" label="Prefix for all generated files"/> | |
63 </inputs> | |
64 <stdio> | |
65 <exit_code range="1:" level="fatal" description="Error" /> | |
66 </stdio> | |
67 <outputs> | |
68 <data format="shear.sdi" name="sdi" label="${tool.name} on ${on_string}: shear_sv.sdi" from_work_dir="shear_sv.sdi" /> | |
69 <data format="txt" name="report" label="${tool.name} on ${on_string}: shear_sv.report" from_work_dir="shear_sv.report"/> | |
70 </outputs> | |
71 <tests> | |
72 <test> | |
73 <param name="bamfile" ftype="bam" value="simulated-data.bam"/> | |
74 <param name="refGenomeSource" value="history"/> | |
75 <param name="ref_fasta" ftype="fasta" value="syn.fa"/> | |
76 <param name="bwa_index" ftype="" value="syn.fa"/> | |
77 <param name="twobit" ftype="twobit" value="syn.2bit"/> | |
78 <output name="shear.sdi" file="shear_sv.sdi"/> | |
79 <output name="report" file="shear_sv.report"/> | |
80 </test> | |
81 </tests> | |
82 <help> | |
83 SHEAR-SV will process a BAM alignment file to find SVs and estimate the | |
84 heterogeneity level of those SVs. It will output a *.report file reporing the | |
85 SVs and their heterogeneity levels, and it will output a *.sdi file that can be | |
86 used for SHEAR-Assemble to reconstruct the new genome. | |
87 </help> | |
88 </tool> |