Mercurial > repos > jjohnson > shear
comparison shear_sv.xml @ 6:0158f7356ffd
Add new outputs and params to shear_sv.xml for version 2.3
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Mon, 21 Oct 2013 08:54:58 -0500 |
parents | aaaa5a071ff0 |
children | 8180f6b0249b |
comparison
equal
deleted
inserted
replaced
5:aaaa5a071ff0 | 6:0158f7356ffd |
---|---|
11 <!-- | 11 <!-- |
12 <version_command></version_command> | 12 <version_command></version_command> |
13 --> | 13 --> |
14 <command interpreter="python"> | 14 <command interpreter="python"> |
15 shear_wrapper.py -j \$SHEAR_JAR_PATH/SHEAR.jar --command sv | 15 shear_wrapper.py -j \$SHEAR_JAR_PATH/SHEAR.jar --command sv |
16 -p $prefix | 16 -p $prefix ## used in gerenating ouput file names |
17 -b $bamfile | 17 -b $bamfile |
18 #if $genomeSource.refGenomeSource == 'indexed': | 18 #if $genomeSource.refGenomeSource == 'indexed': |
19 -f $genomeSource.ref_fastas.fields.path | 19 -f $genomeSource.ref_fastas.fields.path |
20 -i $genomeSource.bwa_indices.fields.path | 20 -i $genomeSource.bwa_indices.fields.path |
21 -t $genomeSource.twobit_indices.fields.path | 21 -t $genomeSource.twobit_indices.fields.path |
27 -f $genomeSource.ref_fasta | 27 -f $genomeSource.ref_fasta |
28 #if $genomeSource.save_svidx: | 28 #if $genomeSource.save_svidx: |
29 -D $sv_idx.extra_files_path | 29 -D $sv_idx.extra_files_path |
30 #end if | 30 #end if |
31 #end if | 31 #end if |
32 --report $report | 32 #if $region and $region.__str__.strip() != '': |
33 --sdi $sdi | 33 -r $region |
34 #end if | |
35 $sv_only | |
34 </command> | 36 </command> |
35 <inputs> | 37 <inputs> |
36 <param name="bamfile" type="data" format="bam" label="BAM alignment file containing the input sequences to the assembly."/> | 38 <param name="bamfile" type="data" format="bam" label="BAM alignment file containing the input sequences to the assembly."/> |
39 <param name="prefix" type="hidden" value="shear_sv" label="Prefix for all generated files"/> | |
40 <!-- | |
37 <param name="prefix" type="text" value="shear_sv" label="Prefix for all generated files"> | 41 <param name="prefix" type="text" value="shear_sv" label="Prefix for all generated files"> |
38 <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> | 42 <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> |
39 </param> | 43 </param> |
44 --> | |
40 <!-- reference data --> | 45 <!-- reference data --> |
41 <conditional name="genomeSource"> | 46 <conditional name="genomeSource"> |
42 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a cached file?"> | 47 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a cached file?"> |
43 <option value="indexed" selected="true">Use a cached reference genome</option> | 48 <option value="indexed" selected="true">Use a cached reference genome</option> |
44 <option value="history">Use fasta from the history</option> | 49 <option value="history">Use fasta from the history</option> |
76 </when> | 81 </when> |
77 <when value="svidx"> | 82 <when value="svidx"> |
78 <param name="svidx" type="data" format="shear.svidx" label="Select a reference from history" /> | 83 <param name="svidx" type="data" format="shear.svidx" label="Select a reference from history" /> |
79 </when> | 84 </when> |
80 </conditional> | 85 </conditional> |
86 <param name="region" type="text" value="" optional="true" label="Region of the input alignment to analyze"> | |
87 <help>"chr1" for full chromosome or "chr1:10000-15000" for a particular region, including endpoints). | |
88 Coordinates are 1-based. | |
89 </help> | |
90 <validator type="regex" message="format: chr1:100-200">^\w+(:\d+-\d+)?$</validator> | |
91 </param> | |
92 <param name="sv_only" type="boolean" truevalue="--sv-only" falsevalue="" checked="false" label="SV Only prediction mode." | |
93 help="Will skip SNP/INDEL prediction and only return *.sdi and *.report results for SVs."/> | |
81 </inputs> | 94 </inputs> |
82 <stdio> | 95 <stdio> |
83 <exit_code range="1:" level="fatal" description="Error" /> | 96 <exit_code range="1:" level="fatal" description="Error" /> |
84 </stdio> | 97 </stdio> |
85 <outputs> | 98 <outputs> |
86 <data format="shear.sdi" name="sdi" label="${tool.name} on ${on_string}: ${prefix}.sdi" /> | 99 <data format="txt" name="report_snpindel" label="${tool.name} on ${on_string}: ${prefix}.snpindel.report" from_work_dir="shear_sv.snpindel.report"> |
87 <data format="txt" name="report" label="${tool.name} on ${on_string}: ${prefix}.report" /> | 100 <filter>sv_only == False</filter> |
101 </data> | |
102 <data format="txt" name="report_sv" label="${tool.name} on ${on_string}: ${prefix}.sv.report" from_work_dir="shear_sv.sv.report"/> | |
103 <data format="txt" name="report_all" label="${tool.name} on ${on_string}: ${prefix}.all.report" from_work_dir="shear_sv.all.report"> | |
104 <filter>sv_only == False</filter> | |
105 </data> | |
106 <data format="shear.sdi" name="sdi_snpindel" label="${tool.name} on ${on_string}: ${prefix}.snpindel.sdi" from_work_dir="shear_sv.snpindel.sdi"> | |
107 <filter>sv_only == False</filter> | |
108 </data> | |
109 <data format="shear.sdi" name="sdi_sv" label="${tool.name} on ${on_string}: ${prefix}.sv.sdi" from_work_dir="shear_sv.sv.sdi"/> | |
110 <data format="shear.sdi" name="sdi_all" label="${tool.name} on ${on_string}: ${prefix}.all.sdi" from_work_dir="shear_sv.all.sdi"> | |
111 <filter>sv_only == False</filter> | |
112 </data> | |
88 <data format="shear.svidx" name="sv_idx" label="${tool.name} on ${on_string}: ${prefix}.svidx"> | 113 <data format="shear.svidx" name="sv_idx" label="${tool.name} on ${on_string}: ${prefix}.svidx"> |
89 <filter>genomeSource['refGenomeSource'] == 'history' and genomeSource['save_svidx'] == True</filter> | 114 <filter>genomeSource['refGenomeSource'] == 'history' and genomeSource['save_svidx'] == True</filter> |
90 </data> | 115 </data> |
91 </outputs> | 116 </outputs> |
92 <tests> | 117 <tests> |
93 <test> | 118 <test> |
94 <param name="prefix" value="shear_test" /> | 119 <param name="prefix" value="shear_test" /> |
95 <param name="bamfile" value="simulated-data.bam" ftype="bam" /> | 120 <param name="bamfile" value="simulated-data.bam" ftype="bam" /> |
96 <param name="refGenomeSource" value="history"/> | 121 <param name="refGenomeSource" value="history"/> |
97 <param name="ref_fasta" value="syn.fa" ftype="fasta" /> | 122 <param name="ref_fasta" value="syn.fa" ftype="fasta" /> |
98 <output name="sdi" file="shear_sv.sdi"/> | 123 <param name="save_svidx" value="false"/> |
99 <output name="report" file="shear_sv.report"/> | 124 <param name="sv_only" value="true"/> |
125 <output name="sdi_sv" file="shear_sv.sdi"/> | |
126 <output name="report_sv" file="shear_sv.report"/> | |
100 </test> | 127 </test> |
101 </tests> | 128 </tests> |
102 <help> | 129 <help> |
103 SHEAR-SV will process a BAM alignment file to find SVs and estimate the | 130 SHEAR-SV will process a BAM alignment file to find SVs and estimate the |
104 heterogeneity level of those SVs. It will output a *.report file reporing the | 131 heterogeneity level of those SVs. It will output a *.report file reporing the |