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