comparison transindel.xml @ 0:ba3910d7bd99 draft

"planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/transindel commit f102f45fafcda3ee868765784d2f69d2dcad6233-dirty"
author jjohnson
date Fri, 27 Mar 2020 10:01:26 -0400
parents
children eddf2f556a92
comparison
equal deleted inserted replaced
-1:000000000000 0:ba3910d7bd99
1 <tool id="transindel" name="transIndel" version="@VERSION@.0" python_template_version="3.5">
2 <description>detect indels from RNAseq or DNAseq BWA-MEM mapping</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <expand macro="version_command" />
8 <command detect_errors="exit_code"><![CDATA[
9 #if $analyze.input_src == 'RNA'
10 #if $analyze.rfasta.rfasta_source == "history":
11 ln -s '$analyze.rfasta.ref_fa_hist' ref.fa &&
12 #else:
13 ln -s '$analyze.rfasta.ref_fa_builtin.fields.path' ref.fa &&
14 #end if
15 transIndel_build_RNA.py -i '$analyze.input' -o 'transIndel.bam'
16 ## Get reference FASTA
17 -r ref.fa
18 ## Get reference GTF
19 #if $analyze.rgtf.rgtf_source == "history":
20 -g '$analyze.rgtf.ref_gtf_hist'
21 #else:
22 -g '$analyze.rgtf.ref_gtf_builtin.fields.path'
23 #end if
24 --mapq_cutoff $analyze.mapq_cutoff
25 --max_del_length $analyze.max_del_length
26 #if $analyze.transIndel_call.run_transIndel_call == 'yes'
27 && transIndel_call.py -i 'transIndel.bam' -o transIndel
28 -r ref.fa
29 -c $analyze.transIndel_call.call_opts.min_observation_count
30 -d $analyze.transIndel_call.call_opts.min_depth
31 -f $analyze.transIndel_call.call_opts.min_allele_frequency
32 -l $analyze.transIndel_call.call_opts.min_length
33 -m $analyze.transIndel_call.call_opts.min_mapq
34 #if $analyze.transIndel_call.call_opts.regions.regions_source != 'none':
35 -t '$analyze.transIndel_call.call_opts.regions.target'
36 #end if
37 #end if
38 #elif $analyze.input_src == 'DNA'
39 transIndel_build_DNA.py -i '$analyze.input' -o 'transIndel.bam'
40 --mapq_cutoff $analyze.mapq_cutoff
41 --max_del_length $analyze.max_del_length
42 #if $analyze.transIndel_call.run_transIndel_call == 'yes'
43 #if $analyze.rfasta.rfasta_source == "history":
44 && ln -s '$analyze.transIndel_call.rfasta.ref_fa_hist' ref.fa
45 #else:
46 && ln -s '$analyze.transIndel_call.rfasta.ref_fa_builtin.fields.path' ref.fa
47 #end if
48 && transIndel_call.py -i 'transIndel.bam' -o transIndel
49 -r ref.fa
50 -c $analyze.transIndel_call.call_opts.min_observation_count
51 -d $analyze.transIndel_call.call_opts.min_depth
52 -f $analyze.transIndel_call.call_opts.min_allele_frequency
53 -l $analyze.transIndel_call.call_opts.min_length
54 -m $analyze.transIndel_call.call_opts.min_mapq
55 #if $analyze.transIndel_call.call_opts.regions.regions_source != 'none':
56 -t '$analyze.transIndel_call.call_opts.regions.target'
57 #end if
58 #end if
59 #elif $analyze.input_src == 'transIndel'
60 #if $analyze.rfasta.rfasta_source == "history":
61 ln -s '$analyze.rfasta.ref_fa_hist' ref.fa &&
62 #else:
63 ln -s '$analyze.rfasta.ref_fa_builtin.fields.path' ref.fa &&
64 #end if
65 transIndel_call.py -i '$analyze.input' -o 'transIndel'
66 -r re.fasta
67 -c $analyze.call_opts.min_observation_count
68 -d $analyze.call_opts.min_depth
69 -f $analyze.call_opts.min_allele_frequency
70 -l $analyze.call_opts.min_length
71 -m $analyze.call_opts.min_mapq
72 #if $analyze.call_opts.regions.regions_source != 'none':
73 -t '$analyze.call_opts.regions.target'
74 #end if
75 #end if
76 ]]></command>
77 <inputs>
78 <conditional name="analyze">
79 <param name="input_src" type="select" label="">
80 <option value="RNA">RNA bwa-mem bam</option>
81 <option value="DNA">DNA bwa-mem bam</option>
82 <option value="transIndel">transIndel bam</option>
83 </param>
84 <when value="RNA">
85 <param name="input" type="data" format="bam" label="bwa-mem bam from RNAseq data"/>
86 <expand macro="reference_genome"/>
87 <expand macro="reference_gtf"/>
88 <param name="splice_site_half_bin_size" argument="-s" type="integer" value="20" min="0" label="splice site half bin size" help="(splice site half bin size)"/>
89 <expand macro="build_opts" token_default_mapq_cutoff="60"/>
90 <expand macro="transindel_call"/>
91 </when>
92 <when value="DNA">
93 <param name="input" type="data" format="bam" label="bwa-mem bam from DNAseq data"/>
94 <expand macro="build_opts" token_default_mapq_cutoff="15"/>
95 <expand macro="transindel_call">
96 <expand macro="reference_genome"/>
97 </expand>
98 </when>
99 <when value="transIndel">
100 <param name="input" type="data" format="bam" label="transIndel bam"/>
101 <expand macro="reference_genome"/>
102 <expand macro="call_opts"/>
103 </when>
104 </conditional>
105 </inputs>
106 <outputs>
107 <data name="output_bam" format="bam" label="${tool.name} on ${on_string}: transIndel.bam" from_work_dir="transIndel.bam">
108 <filter>analyze['input_src'] != 'transindel' </filter>
109 </data>
110 <data name="output_vcf" format="vcf" label="${tool.name} on ${on_string}: transIndel.indel.vcf" from_work_dir="transIndel.indel.vcf" >
111 <filter>analyze['input_src'] == 'transindel' or analyze['transIndel_call']['run_transIndel_call'] == 'yes'</filter>
112 </data>
113 </outputs>
114 <tests>
115 <test>
116 <conditional name="analyze">
117 <param name="input_src" value="RNA"/>
118 <param name="input" ftype="bam" value="RNA.bam"/>
119 <conditional name="rfasta">
120 <param name="rfasta_source" value="history"/>
121 <param name="ref_fa_hist" ftype="fasta" value="GRCh38_20.fa" />
122 </conditional>
123 <conditional name="rgtf">
124 <param name="rgtf_source" value="history"/>
125 <param name="ref_gtf_hist" ftype="gtf" value="GRCh38_20.gtf" />
126 </conditional>
127 </conditional>
128 <output name="output_vcf">
129 <assert_contents>
130 <has_text text="SVTYPE=DEL" />
131 </assert_contents>
132 </output>
133 </test>
134 </tests>
135 <help><![CDATA[
136 TODO: Fill in help.
137 ]]></help>
138 <expand macro="citations" />
139 </tool>