annotate siRNA_pipeline.xml @ 50:7b5a48b972e9 draft

Uploaded
author big-tiandm
date Fri, 05 Dec 2014 00:11:02 -0500
parents
children 3202911efdae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
1 <tool id="plant_sirna_v1" name="siRNA" veision="1.0.0">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
2 <description>tool for plant siRNA analisis</description>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
3
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
4 <requirements>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
5 <requirement type="set_environment">SCRIPT_PATH</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
6 <requirement type="package" version="0.12.7">bowtie</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
7 <requirement type="package" version="3.0.1">R</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
8 <requirement type="package" version="0.0.13">fastx_toolkit </requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
9 <requirement type="package" version="1.96">threads</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
10 <requirement type="package" version="1.06">Parallel-ForkManager</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
11 <requirement type="package" version="2.59">SVG</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
12 <requirement type="package" version="1.4_001">Boost-Graph</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
13 </requirements>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
14
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
15 <command interpreter="perl">siRNA_pipeline.pl
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
16 ## Change this to accommodate the number of threads you have available.
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
17 -t \${GALAXY_SLOTS:-4}
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
18
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
19 -path \$SCRIPT_PATH
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
20
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
21 #for $j, $s in enumerate( $series )
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
22 ##rank_of_series=$j
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
23 -i ${s.input}
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
24 -tag ${s.tag}
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
25 #end for
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
26
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
27 ## prepare bowtie index
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
28 #set index_path = ''
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
29 #if str($reference_genome.source) == "history":
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
30 bowtie-build "$reference_genome.own_file" genome; ln -s "$reference_genome.own_file" genome.fa;
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
31 #set index_path = 'genome'
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
32 #else:
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
33 #set index_path = $reference_genome.index.fields.path
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
34 #end if
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
35
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
36
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
37 ## prepare Rfam bowtie index
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
38 #set rfam_index_path = ''
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
39 #if str($reference_rfam.source) == "history":
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
40 bowtie-build "$reference_rfam.own_file" rfam; ln -s $reference_rfam.own_file" rfam.fa;
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
41 #set rfam_index_path = 'rfam'
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
42 #else:
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
43 #set rfam_index_path = $reference_rfam.index.fields.path
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
44 #end if
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
45
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
46
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
47
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
48 ## Do or not annotate siRNAs by function
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
49 #if $params.function_anno == "yes":
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
50 -nat $params.nat -repeat $params.repeat
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
51 #end if
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
52
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
53 ## Do or not DEG
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
54 #if $degseq.degseq_analysis == "yes" :
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
55 -deg $degseq.deg
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
56 #end if
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
57
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
58 -format $format -phred $phred -g ${index_path}.fa -idx $index_path -f $gff -mis $mis -rfam ${rfam_index_path}.fa -idx2 $rfam_index_path -v $v -a $a -n $mapnt -d $d -p $p -l $l -cen $cen -span $span > run.log
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
59
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
60 </command>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
61
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
62 <inputs>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
63
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
64 <repeat name="series" title="Series">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
65 <param name="input" type="data" label="Raw data file"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
66 <param name="tag" type="text" data_ref="input" label="Sample name of raw data"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
67 </repeat>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
68
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
69 <param name="format" type="select" lable="raw data format" multiple="false">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
70 <option value="fastq">Raw data is fastq. format</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
71 <option value="fasta">Raw data is fasta. format</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
72 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
73
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
74 <param name="phred" type="select" lable="input quals are Phred+64 or Phred+33" multiple="false">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
75 <option value="64">Phred+64</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
76 <option value="33" selected="true">Phred+33</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
77 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
78
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
79 <conditional name="reference_genome">
7b5a48b972e9 Uploaded
big-tiandm
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">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
81 <option value="indexed">Use a built-in index</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
82 <option value="history">Use one from the history</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
83 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
84 <when value="indexed">
7b5a48b972e9 Uploaded
big-tiandm
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">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
86 <options from_data_table="bowtie_indexes">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
87 <filter type="sort_by" column="2"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
88 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
89 </options>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
90 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
91 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
92 <when value="history">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
93 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
94 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
95 </conditional> <!--param type="data" name="index" label="genome sequence bowtie index"/-->
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
96
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
97 <conditional name="reference_rfam">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
98 <param name="source" type="select" label="Will you select a rfam reference from your history or use a built-in index?" help="Built-ins were indexed using default options">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
99 <option value="indexed">Use a built-in index</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
100 <option value="history">Use one from the history</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
101 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
102 <when value="indexed">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
103 <param name="index" type="select" label="Select a reference " help="If your rfam of interest is not listed, contact the Galaxy team">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
104 <options from_data_table="rfam_bowtie_indexes">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
105 <filter type="sort_by" column="2"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
106 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
107 </options>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
108 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
109 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
110 <when value="history">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
111 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
112 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
113 </conditional>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
114
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
115 <param name="gff" type="data" label="gff file" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
116 <param name="mis" type="integer" value="0" label="number of allowed mismatches when mapping reads to genome" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
117 <param name="v" type="integer" value="0" label="report end-to-end hits less than v mismatches"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
118 <param name="a" type="text" value="ATCTCGTATG" label="3' adapter sequence" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
119 <param name="mapnt" type="integer" value="25" label="a read is allowed to map up to this number of positions in the genome" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
120 <param name="d" type="integer" value="100" label="distance of tag to merged a cluster" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
121
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
122 <param name="p" type="select" lable="cluster method" multiple="false">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
123 <option value="F">conventional</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
124 <option value="T">NIBLES</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
125 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
126 <param name="l" type="integer" value="1000" label="the length of the upstream and downstream,used in position annotate" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
127
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
128
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
129 <conditional name="params">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
130 <param name="function_anno" type="select" label="Do or not annotate siRNAs by function">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
131 <option value="no" selected="true">no</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
132 <option value="yes">yes</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
133 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
134 <when value="yes">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
135 <param name="nat" type="data" label="atural antisense transcripts file" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
136 <param name="repeat" type="data" label="repeat information file out of Repeatmasker" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
137 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
138 </conditional> <!-- params -->
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
139
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
140 <param name="cen" type="data" label="centromere file input" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
141 <param name="span" type="integer" value="50000" label="plot span" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
142
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
143 <conditional name="degseq">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
144 <param name="degseq_analysis" type="select" label="Do or not identify Difference Expression Clusters">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
145 <option value="no" selected="true">no</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
146 <option value="yes">yes</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
147 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
148 <when value="yes">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
149 <param name="deg" type="data" label="file config of de sample" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
150 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
151 </conditional>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
152
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
153 </inputs>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
154
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
155 <outputs>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
156 <data format="txt" name="siRNA cluster" from_work_dir="cluster_runs/total.result" label="${tool.name} on ${on_string}: siRNA cluster"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
157 <data format="html" name="analysis result" from_work_dir="cluster_runs/result.html" label="${tool.name} on ${on_string}: analysis result"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
158
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
159 </outputs>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
160
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
161 <help>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
162
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
163 </help>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
164 </tool>