annotate miRPlant.xml @ 53:f5a2e8308836 draft default tip

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