annotate preProcess.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="preprocess" name="preProcess" veision="1.0.0">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
2 <description>Program for Raw data preprocess analysis, including 3' adapter triming, reads collaping, genome mapping and rfam non-miRNA 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="2.1.8">ViennaRNA</requirement>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
12 </requirements>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
13
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
14 <!--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
15
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
16 <command interpreter="perl">preProcess.pl
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
17 ## Change this to accommodate the number of threads you have available.
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
18 -t \${GALAXY_SLOTS:-4}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
19 -path \$SCRIPT_PATH
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
20
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
21 #for $j, $s in enumerate( $series )
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
22 ##rank_of_series=$j
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
23 -i ${s.input}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
24 -tag ${s.tag}
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
25 #end for
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
26
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
27 ## Do or not annotate rfam non-miRNA RNAs
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
28 #if $nocoding.annotate_rfam == "yes":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
29 ## prepare Rfam bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
30 #set rfam_index_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
31 #if str($nocoding.reference_rfam.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
32 -rfam $nocoding.reference_rfam.own_file
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
33 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
34 #set rfam_index_path = $nocoding.reference_rfam.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
35 -rfam ${rfam_index_path}.fa -idx2 $rfam_index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
36 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
37 -v $nocoding.v
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
38 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
39
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
40 ## prepare bowtie index
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
41 #set index_path = ''
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
42 #if str($reference_genome.source) == "history":
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
43 #set index_path = 'genome'
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
44 -gfa $reference_genome.own_file
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
45 #else:
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
46 #set index_path = $reference_genome.index.fields.path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
47 -gfa ${index_path}.fa -idx $index_path
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
48 #end if
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
49
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
50 -format $format -phred $phred -a $a -M $mapnt -min $min -max $max -mis $mismatch > run.log
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
51 </command>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
52
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
53 <inputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
54
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
55 <repeat name="series" title="Raw sequence data">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
56 <param name="input" type="data" label="Raw data"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
57 <param name="tag" type="text" data_ref="input" label="Sample name of raw data"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
58 </repeat>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
59
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
60 <!--param name="input" format="tabular" type="data" label="input config file" /-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
61
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
62 <param name="format" type="select" label="Raw data format" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
63 <option value="fastq">Raw data is fastq. format</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
64 <option value="fasta">Raw data is fasta. format</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
65 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
66 <param name="phred" type="select" label="Input quals are Phred+64 or Phred+33" multiple="false">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
67 <option value="64">Phred+64</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
68 <option value="33" selected="true">Phred+33</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
69 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
70
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
71 <!-- reference genome -->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
72 <conditional name="reference_genome">
87fe81de0931 Uploaded
bigrna
parents:
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">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
74 <option value="indexed">Use a built-in index</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
75 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
76 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
77 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
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">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
79 <options from_data_table="bowtie_indexes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
80 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
81 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
82 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
83 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
84 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
85 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
86 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
87 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
88 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
89
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
90 <!--param name="gfa" type="data" label="genome sequence fasta file"/-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
91 <!--param type="data" name="index" label="genome sequence bowtie index"/-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
92 <param name="a" type="text" value="TGGAATTCTCGGGTGCCAAGG" label="3' adapter sequence" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
93 <param name="mapnt" type="integer" value="8" label="minimum adapter map nts" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
94 <param name="min" type="integer" value="19" label="Minimum microRNA length" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
95 <param name="max" type="integer" value="28" label="Maximum microRNA length" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
96 <param name="mismatch" type="integer" value="0" label="Number of allowed mismatches when mapping reads to genome" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
97
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
98 <conditional name="nocoding">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
99 <param name="annotate_rfam" type="select" label="Annotate nocoding RNAs(excluding miRNA)">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
100 <option value="yes" selected="true">yes</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
101 <option value="no">no</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
102 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
103 <when value="yes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
104 <!--param name="rfam" type="data" label="rfam sequence file" /-->
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
105 <conditional name="reference_rfam">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
106 <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
107 <option value="indexed">Use a built-in index</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
108 <option value="history">Use one from the history</option>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
109 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
110 <when value="indexed">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
111 <param name="index" type="select" label="Select a reference" help="If your reference of interest is not listed, contact the Galaxy team">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
112 <options from_data_table="rfam_bowtie_indexes">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
113 <filter type="sort_by" column="2"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
114 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
115 </options>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
116 </param>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
117 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
118 <when value="history">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
119 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference" />
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
120 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
121 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
122
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
123 <param name="v" type="integer" value="0" label="Report end-to-end hits less than v mismatches for non-coding RNA annotation"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
124 </when>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
125 </conditional>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
126
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
127
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
128
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
129 </inputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
130
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
131 <outputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
132 <data format="html" name="preprocess result" from_work_dir="preProcess/preprocessResult.html" label="${tool.name} on ${on_string}: preprocess result"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
133
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
134 <data format="txt" name="clean FASTA data" from_work_dir="preProcess/preProcess_clean/clean_data.fa" label="${tool.name} on ${on_string}: clean FASTA data"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
135
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
136 <data format="txt" name="genome mapping result" from_work_dir="preProcess/genome_match/genome_mapped.bwt" label="${tool.name} on ${on_string}: genome mapping result"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
137 <data format="txt" name="genome mapped FASTA reads" from_work_dir="preProcess/genome_match/genome_mapped.fa" label="${tool.name} on ${on_string}: genome mapped FASTA reads"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
138
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
139 <data format="txt" name="Rfam mapping result" from_work_dir="preProcess/rfam_match/rfam_mapped.bwt" label="${tool.name} on ${on_string}: Rfam mapping result">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
140 <filter>(nocoding['annotate_rfam'] == 'yes')</filter>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
141 </data>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
142 <data format="txt" name="Rfam mapped FASTA file" from_work_dir="preProcess/rfam_match/rfam_mapped.fa" label="${tool.name} on ${on_string}: Rfam mapped FASTA file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
143 <filter>(nocoding['annotate_rfam'] == 'yes')</filter>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
144 </data>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
145 <data format="txt" name="Rfam not mapped FASTA file" from_work_dir="preProcess/rfam_match/rfam_not_mapped.fa" label="${tool.name} on ${on_string}: Rfam not mapped FASTA file">
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
146 <filter>(nocoding['annotate_rfam'] == 'yes')</filter>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
147 </data>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
148 <data format="txt" name="input config" from_work_dir="preProcess/input_config" label="${tool.name} on ${on_string}: input config"/>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
149
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
150 </outputs>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
151
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
152 <help>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
153
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
154 </help>
87fe81de0931 Uploaded
bigrna
parents:
diff changeset
155 </tool>