Mercurial > repos > jjohnson > shear
comparison shear_sv.xml @ 4:a82400332451
Use shear_wrapper.py to generate reference indexes when needed
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Tue, 16 Jul 2013 12:38:48 -0500 |
parents | 630532975fa9 |
children | aaaa5a071ff0 |
comparison
equal
deleted
inserted
replaced
3:630532975fa9 | 4:a82400332451 |
---|---|
9 <requirement type="package" version="latest">kent</requirement> | 9 <requirement type="package" version="latest">kent</requirement> |
10 </requirements> | 10 </requirements> |
11 <!-- | 11 <!-- |
12 <version_command></version_command> | 12 <version_command></version_command> |
13 --> | 13 --> |
14 <command>java -jar \$SHEAR_JAR_PATH/SHEAR.jar sv -p $prefix | 14 <command interpreter="python"> |
15 -b $bamfile | 15 shear_wrapper.py -j \$SHEAR_JAR_PATH/SHEAR.jar --command sv |
16 -p $prefix | |
17 -b $bamfile | |
16 #if $genomeSource.refGenomeSource == 'indexed': | 18 #if $genomeSource.refGenomeSource == 'indexed': |
17 -f $genomeSource.ref_fastas.fields.path | 19 -f $genomeSource.ref_fastas.fields.path |
18 -i $genomeSource.bwa_indices.fields.path | 20 -i $genomeSource.bwa_indices.fields.path |
19 -t $genomeSource.twobit_indices.fields.path | 21 -t $genomeSource.twobit_indices.fields.path |
22 #elif $genomeSource.refGenomeSource == 'svidx': | |
23 -f $genomeSource.svidx.extra_files_path/${genomeSource.svidx.metadata.base_name}.fa | |
24 -i $genomeSource.svidx.extra_files_path/${genomeSource.svidx.metadata.base_name}.fa | |
25 -t $genomeSource.svidx.extra_files_path/${genomeSource.svidx.metadata.base_name}.2bit | |
20 #else: | 26 #else: |
21 -f $genomeSource.ref_fasta | 27 -f $genomeSource.ref_fasta |
22 -i $genomeSource.bwa_index | 28 #if $genomeSource.save_svidx: |
23 -t $genomeSource.twobit | 29 -D $sv_idx.extra_files_path |
30 #end if | |
24 #end if | 31 #end if |
32 --report $report | |
33 --sdi $sdi | |
25 </command> | 34 </command> |
26 <inputs> | 35 <inputs> |
27 <param name="bamfile" type="data" format="bam" label="BAM alignment file containing the input sequences to the assembly."/> | 36 <param name="bamfile" type="data" format="bam" label="BAM alignment file containing the input sequences to the assembly."/> |
37 <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> | |
39 </param> | |
28 <!-- reference data --> | 40 <!-- reference data --> |
29 <conditional name="genomeSource"> | 41 <conditional name="genomeSource"> |
30 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a cached file?"> | 42 <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> | 43 <option value="indexed" selected="true">Use a cached reference genome</option> |
32 <!-- | 44 <option value="history">Use fasta from the history</option> |
33 <option value="history">Use one from the history</option> | 45 <option value="svidx">Use SHEAR sv index from the history</option> |
34 --> | |
35 </param> | 46 </param> |
36 <when value="indexed"> | 47 <when value="indexed"> |
37 <param name="ref_fastas" type="select" label="Select a reference genome fasta"> | 48 <param name="ref_fastas" type="select" label="Select a reference genome fasta"> |
38 <options from_data_table="all_fasta"> | 49 <options from_data_table="all_fasta"> |
39 <filter type="sort_by" column="2" /> | 50 <filter type="sort_by" column="2" /> |
57 --> | 68 --> |
58 <validator type="no_options" message="No indexes are available" /> | 69 <validator type="no_options" message="No indexes are available" /> |
59 </options> | 70 </options> |
60 </param> | 71 </param> |
61 </when> | 72 </when> |
62 <!-- | |
63 <when value="history"> | 73 <when value="history"> |
64 <param name="ref_fasta" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" /> | 74 <param name="ref_fasta" type="data" format="fasta" label="Select a reference from history" /> |
65 <param name="twobit" type="data" format="twobit" metadata_name="dbkey" label="Select a reference from history" /> | 75 <param name="save_svidx" type="boolean" truevalue="yes" falsevalue="no" label="Save sv generated reference indexes"/> |
66 <param name="bwa_index" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" /> | |
67 </when> | 76 </when> |
68 --> | 77 <when value="svidx"> |
78 <param name="svidx" type="data" format="shear.svidx" label="Select a reference from history" /> | |
79 </when> | |
69 </conditional> | 80 </conditional> |
70 <param name="prefix" type="hidden" value="shear_sv" label="Prefix for all generated files"/> | |
71 </inputs> | 81 </inputs> |
72 <stdio> | 82 <stdio> |
73 <exit_code range="1:" level="fatal" description="Error" /> | 83 <exit_code range="1:" level="fatal" description="Error" /> |
74 </stdio> | 84 </stdio> |
75 <outputs> | 85 <outputs> |
76 <data format="shear.sdi" name="sdi" label="${tool.name} on ${on_string}: shear_sv.sdi" from_work_dir="shear_sv.sdi" /> | 86 <data format="shear.sdi" name="sdi" label="${tool.name} on ${on_string}: ${prefix}.sdi" /> |
77 <data format="txt" name="report" label="${tool.name} on ${on_string}: shear_sv.report" from_work_dir="shear_sv.report"/> | 87 <data format="txt" name="report" label="${tool.name} on ${on_string}: ${prefix}.report" /> |
88 <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> | |
90 </data> | |
78 </outputs> | 91 </outputs> |
79 <tests> | 92 <tests> |
80 <test> | 93 <test> |
81 <param name="bamfile" ftype="bam" value="simulated-data.bam"/> | 94 <param name="prefix" value="shear_test" /> |
95 <param name="bamfile" value="simulated-data.bam" ftype="bam" /> | |
82 <param name="refGenomeSource" value="history"/> | 96 <param name="refGenomeSource" value="history"/> |
83 <param name="ref_fasta" ftype="fasta" value="syn.fa"/> | 97 <param name="ref_fasta" value="syn.fa" ftype="fasta" /> |
84 <param name="bwa_index" ftype="" value="syn.fa"/> | 98 <output name="sdi" file="shear_sv.sdi"/> |
85 <param name="twobit" ftype="twobit" value="syn.2bit"/> | |
86 <output name="shear.sdi" file="shear_sv.sdi"/> | |
87 <output name="report" file="shear_sv.report"/> | 99 <output name="report" file="shear_sv.report"/> |
88 </test> | 100 </test> |
89 </tests> | 101 </tests> |
90 <help> | 102 <help> |
91 SHEAR-SV will process a BAM alignment file to find SVs and estimate the | 103 SHEAR-SV will process a BAM alignment file to find SVs and estimate the |