annotate siRNA.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_sirna_v1" name="siRNA" veision="1.0.0">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
2 <description>Program for plant siRNA analysis (siRNA only)</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="set_environment">SCRIPT_PATH</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="package" version="3.0.1">R</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
8 <requirement type="package" version="0.0.13">fastx_toolkit </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="1.06">Parallel-ForkManager</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
11 <requirement type="package" version="2.59">SVG</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
12 <requirement type="package" version="1.4_001">Boost-Graph</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">siRNA.pl
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
16 ## Change this to accommodate the number of threads you have available.
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
17 -t \${GALAXY_SLOTS:-4}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
18
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
19 -path \$SCRIPT_PATH
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
20
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
21 ## prepare bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
22 #set index_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
23 #if str($reference_genome.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
24 #### bowtie-build "$reference_genome.own_file" genome; ln -s "$reference_genome.own_file" genome.fa;
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
25 #set index_path = $reference_genome.own_file
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
26 -g $index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
27
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
28 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
29 #set index_path = $reference_genome.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
30 -g ${index_path}.fa -idx $index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
31 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
32
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
33
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
34 ## Do or not annotate siRNAs by function
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
35 #if $params.function_anno == "yes":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
36
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
37 ## prepare bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
38 #set nat_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
39 #if str($params.nat_file.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
40 #set nat_path = $params.nat_file.nat
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
41
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
42 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
43 #set nat_path = $params.nat_file.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
44 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
45
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
46 ## prepare bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
47 #set repeat_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
48 #if str($params.repeat_file.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
49 #set repeat_path = $params.repeat_file.repeat
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
50
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
51 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
52 #set repeat_path = $params.repeat_file.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
53 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
54
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
55
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
56 -nat $nat_path -repeat $repeat_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
57 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
58
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
59 ## Do or not DEG
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
60 #if $degseq.degseq_analysis == "yes" :
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
61 -deg $degseq.deg
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
62 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
63
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
64 -i $reads -config $config -n $mapnt -format $format -f $gff -mis $mis -d $d -p $p -l $l -cen $cen -span $span > run.log
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
65
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
66 </command>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
67
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
68 <inputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
69
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
70 <param name="config" type="data" label="Raw data configs file" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
71 <param name="reads" type="data" label="Input Fasta. file of candidate microRNA sequence" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
72
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
73 <param name="format" type="select" lable=" Data format" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
74 <option value="fastq">Input data is fastq. format</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
75 <option value="fasta">Input data is fasta. format</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
76 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
77
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
78
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
79 <conditional name="reference_genome">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
80 <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
81 <option value="indexed">Use a built-in index</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
82 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
83 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
84 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
85 <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
86 <options from_data_table="bowtie_indexes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
87 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
88 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
89 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
90 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
91 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
92 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
93 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
94 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
95 </conditional> <!--param type="data" name="index" label="genome sequence bowtie index"/-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
96
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
97
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
98 <param name="gff" type="data" label="gff file" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
99 <param name="mis" type="integer" value="0" label="Number of allowed mismatches when mapping reads to genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
100 <param name="mapnt" 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
101 <param name="d" type="integer" value="100" label="Distance of tag to merged a cluster" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
102
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
103 <param name="p" type="select" lable="siRNA cluster method" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
104 <option value="F">conventional</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
105 <option value="T">NIBLES</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
106 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
107 <param name="l" type="integer" value="1000" label="The length of the upstream and downstream,used in position annotate" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
108
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
109
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
110 <conditional name="params">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
111 <param name="function_anno" type="select" label="Do or not annotate siRNAs by function">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
112 <option value="no" selected="true">no</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
113 <option value="yes">yes</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
114 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
115 <when value="yes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
116
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
117
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
118 <conditional name="nat_file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
119 <param name="source" type="select" label="Will you select a atural antisense transcripts file from your history ?" help="down load from ***">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
120 <option value="indexed">Use a built-in file</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
121 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
122 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
123 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
124 <param name="index" type="select" label="Select a atural antisense transcripts file" help="If your species of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
125 <options from_data_table="nat_annotate">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
126 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
127 <validator type="no_options" message="No files are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
128 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
129 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
130 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
131 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
132 <param name="nat" type="data" format="txt" label="atural antisense transcripts file" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
133 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
134 </conditional> <!--param type="data" name="index" label="genome sequence bowtie index"/-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
135
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
136 <conditional name="repeat_file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
137 <param name="source" type="select" label="Will you select a repeat information file from your history ?" help="down load from ***">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
138 <option value="indexed">Use a built-in file</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
139 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
140 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
141 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
142 <param name="index" type="select" label="Select a repeat information file" help="If your species of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
143 <options from_data_table="repeat_annotate">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
144 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
145 <validator type="no_options" message="No files are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
146 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
147 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
148 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
149 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
150 <param name="repeat" type="data" label="repeat information file out of Repeatmasker" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
151 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
152 </conditional> <!--param type="data" name="index" label="genome sequence bowtie index"/-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
153 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
154 </conditional> <!-- params -->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
155
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
156 <param name="cen" type="data" label="centromere file input" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
157 <param name="span" type="integer" value="50000" label="plot span" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
158
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
159 <conditional name="degseq">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
160 <param name="degseq_analysis" type="select" label="Do or not identify Difference Expression Clusters">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
161 <option value="no" selected="true">no</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
162 <option value="yes">yes</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
163 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
164 <when value="yes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
165 <param name="deg" type="data" label="file config of de sample" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
166 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
167 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
168
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
169
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
170 </inputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
171
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
172 <outputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
173 <data format="txt" name="siRNA cluster" from_work_dir="cluster_runs/total.result" label="${tool.name} on ${on_string}: siRNA cluster"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
174 <data format="html" name="analysis result" from_work_dir="cluster_runs/result.html" label="${tool.name} on ${on_string}: analysis result"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
175
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
176 </outputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
177
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
178 <help>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
179
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
180 </help>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
181 </tool>