annotate microRNA_pipeline.xml @ 0:87fe81de0931 draft default tip

Uploaded
author bigrna
date Sun, 04 Jan 2015 02:47:25 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
1 <tool id="plant_microRNA_v1" name="microRNA_pipeline" veision="1.0.0">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
2 <description>Program for plant microRNA analysis (rawdata preprocess -> genome mapping -> non-coding RNA(exclude miRNAs) annotation -> microRNA analysis)</description>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
3
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
4 <requirements>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
5 <requirement type="package" version="0.0.13">fastx_toolkit </requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
6 <requirement type="package" version="0.12.7">bowtie</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
7 <requirement type="set_environment">SCRIPT_PATH</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
8 <!--requirement type="package" version="3.0.1">R</requirement!-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
9 <requirement type="package" version="1.96">threads</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
10 <requirement type="package" version="2.59">SVG</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
11 <!--requirement type="package" version="0.228">parent</requirement-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
12 <requirement type="package" version="2.1.8">ViennaRNA</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
13 </requirements>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
14
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
15 <!--command interpreter="perl">miPlant.pl -i $input -format $format -gfa $gfa -idx $index -pre $pre -mat $mat -rfam $rfam -idx2 $idx2 -D $D -a $a -M $M -min $min -max $max -mis $mis -e $e -f $f -v $v -r $r -dis $dis -flank $flank -mfe $mfe -t $t -o $output</command-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
16
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
17 <command interpreter="perl">microRNA_pipeline.pl
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
18 ## Change this to accommodate the number of threads you have available.
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
19 -t \${GALAXY_SLOTS:-4}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
20 -path \$SCRIPT_PATH
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
21
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
22 #for $j, $s in enumerate( $series )
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
23 ##rank_of_series=$j
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
24 -i ${s.input}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
25 -tag ${s.tag}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
26 #end for
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
27
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
28 ## prepare bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
29 #set index_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
30 #if str($reference_genome.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
31 #####bowtie-build "$reference_genome.own_file" genome; ln -s "$reference_genome.own_file" genome.fa;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
32 #set index_path = $reference_genome.own_file
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
33 -gfa $index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
34 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
35 #set index_path = $reference_genome.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
36 -gfa ${index_path}.fa -idx $index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
37 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
38
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
39
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
40 ## Do or not annotate rfam non-miRNA RNAs
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
41 #if $params.annotate_rfam == "yes":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
42
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
43 ## prepare Rfam bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
44 #set rfam_index_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
45 #if str($params.reference_rfam.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
46 ######## bowtie-build "$params.reference_rfam.own_file" rfam; ln -s "$params.reference_rfam.own_file" rfam.fa;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
47 #set rfam_index_path = $params.reference_rfam.own_file
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
48 -rfam $rfam_index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
49 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
50 #set rfam_index_path = $params.reference_rfam.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
51 -rfam ${rfam_index_path}.fa -idx2 $rfam_index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
52 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
53
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
54 -v $params.v
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
55 ## Do or not delete rfam mapped tags
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
56 #if $params.delete_rfam == "yes":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
57 -D
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
58 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
59 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
60
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
61
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
62 ## Do or not annotate known microRNAs
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
63 #if $mirbase.known_microRNA == "yes":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
64 -pre $mirbase.pre -mat $mirbase.mat
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
65 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
66
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
67
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
68 -format $format -phred $phred -a $a -M $mapnt -min $min -max $max -mis $mismatch -e $e -f $f -r $r -dis $dis -flank $flank -mfe $mfe > run.log
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
69 </command>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
70
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
71 <inputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
72
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
73 <repeat name="series" title="Raw sequence data">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
74 <param name="input" type="data" label="Raw data"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
75 <param name="tag" type="text" data_ref="input" label="Sample name of raw data"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
76 </repeat>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
77
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
78 <param name="format" type="select" label="Raw data format" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
79 <option value="fastq">Raw data is fastq. format</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
80 <option value="fasta">Raw data is fasta. format</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
81 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
82
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
83 <param name="phred" type="select" label="Input quals are Phred+64 or Phred+33" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
84 <option value="64">Phred+64</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
85 <option value="33" selected="true">Phred+33</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
86 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
87
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
88 <conditional name="reference_genome">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
89 <param name="source" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
90 <option value="indexed">Use a built-in index</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
91 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
92 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
93 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
94 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
95 <options from_data_table="bowtie_indexes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
96 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
97 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
98 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
99 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
100 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
101 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
102 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
103 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
104 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
105
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
106 <conditional name="params">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
107 <param name="annotate_rfam" type="select" label="annotate rfam nocoding RNAs(excluding miRNA)">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
108 <option value="yes" selected="true">yes</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
109 <option value="no">no</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
110 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
111 <when value="yes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
112 <!--param name="rfam" type="data" label="rfam sequence file" /-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
113 <conditional name="reference_rfam">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
114 <param name="source" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
115 <option value="indexed">Use a built-in index</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
116 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
117 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
118 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
119 <param name="index" type="select" label="Select a non-coding RNA reference" help="If your reference of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
120 <options from_data_table="rfam_bowtie_indexes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
121 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
122 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
123 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
124 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
125 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
126 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
127 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
128 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
129 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
130
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
131 <param name="v" type="integer" value="0" label="report end-to-end hits less than v mismatches for rfam mapping"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
132
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
133 <param name="delete_rfam" type="select" label="delet rfam mapped reads">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
134 <option value="yes" selected="true">yes</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
135 <option value="no">no</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
136 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
137 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
138
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
139 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
140
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
141 <conditional name="mirbase">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
142 <param name="known_microRNA" type="select" label="Analysis known microRNAs(eg. from mirbase)">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
143 <option value="yes" selected="true">yes</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
144 <option value="no">no</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
145 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
146 <when value="yes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
147 <param name="mat" type="data" label="mature microRNA sequence file" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
148 <param name="pre" type="data" label="precursor microRNA sequence file" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
149 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
150
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
151 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
152
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
153
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
154 <param name="a" type="text" value="TGGAATTCTCGGGTGCCAAGG" label="3' adapter sequence" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
155 <param name="mapnt" type="integer" value="8" label="minimum adapter map nts" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
156 <param name="min" type="integer" value="19" label="minimum microRNA length" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
157 <param name="max" type="integer" value="28" label="maximum microRNA length" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
158 <param name="mismatch" type="integer" value="0" label="number of allowed mismatches when mapping reads to precursors" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
159 <param name="e" type="integer" value="2" label="number of nucleotides upstream of the mature sequence to consider" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
160 <param name="f" type="integer" value="5" label="number of nucleotides downstream of the mature sequence to consider" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
161 <param name="r" type="integer" value="25" label="a read is allowed to map up to this number of positions in the genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
162 <param name="dis" type="integer" value="200" label="Maximal space between miRNA and miRNA*" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
163 <param name="flank" type="integer" value="10" label="Flank sequence length of miRNA precursor" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
164 <param name="mfe" type="float" value="-30" label="Maximal free energy allowed for a miRNA precursor" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
165 </inputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
166
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
167 <outputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
168 <data format="txt" name="known microRNA express list" from_work_dir="miRPlant_out/known_microRNA_express.txt" label="${tool.name} on ${on_string}: known microRNA express list">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
169 <filter>(mirbase['known_microRNA'] == 'yes')</filter>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
170 </data>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
171 <data format="txt" name="known microRNA express alignment" from_work_dir="miRPlant_out/known_microRNA_express.aln" label="${tool.name} on ${on_string}: known microRNA express alignment">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
172 <filter>(mirbase['known_microRNA'] == 'yes')</filter>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
173 </data>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
174 <data format="txt" name="known microRNA moRs result" from_work_dir="miRPlant_out/known_microRNA_express.moRs" label="${tool.name} on ${on_string}: known microRNA moRs result">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
175 <filter>(mirbase['known_microRNA'] == 'yes')</filter>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
176 </data>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
177 <data format="txt" name="known microRNA precursor file" from_work_dir="miRPlant_out/known_microRNA_precursor.fa" label="${tool.name} on ${on_string}: known microRNA precursor file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
178 <filter>(mirbase['known_microRNA'] == 'yes')</filter>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
179 </data>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
180 <data format="txt" name="known microRNA mature file" from_work_dir="miRPlant_out/known_microRNA_mature.fa" label="${tool.name} on ${on_string}: known microRNA mature file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
181 <filter>(mirbase['known_microRNA'] == 'yes')</filter>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
182 </data>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
183 <data format="txt" name="novel microRNA express list" from_work_dir="miRPlant_out/novel_microRNA_express.txt" label="${tool.name} on ${on_string}: novel microRNA express list"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
184 <data format="txt" name="novel microRNA precursor file" from_work_dir="miRPlant_out/novel_microRNA_precursor.fa" label="${tool.name} on ${on_string}: novel microRNA precursor file"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
185 <data format="txt" name="novel microRNA mature sequence file" from_work_dir="miRPlant_out/novel_microRNA_mature.fa" label="${tool.name} on ${on_string}: novel microRNA mature sequence file"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
186 <data format="html" name="analysis result" from_work_dir="miRPlant_out/result.html" label="${tool.name} on ${on_string}: analysis result"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
187 </outputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
188
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
189 <help>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
190
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
191 </help>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
192 </tool>