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