annotate microRNA.xml @ 50:7b5a48b972e9 draft

Uploaded
author big-tiandm
date Fri, 05 Dec 2014 00:11:02 -0500
parents
children 8b8c356e6db5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
1 <tool id="micrornas" name="microRNA" veision="1.0.0">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
2 <description>Plant microRNA analysis </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="package" version="0.0.13">fastx_toolkit </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="set_environment">SCRIPT_PATH</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
8 <!--requirement type="package" version="3.0.1">R</requirement!-->
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
9 <requirement type="package" version="2.59">SVG</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
10 <requirement type="package" version="2.1.8">ViennaRNA</requirement>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
11 </requirements>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
12
7b5a48b972e9 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-->
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
14
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
15 <command interpreter="perl">microRNA.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 -path \$SCRIPT_PATH
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
19
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
20
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
21 ## Do or not annotate known microRNAs
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
22 #if $params.known_microRNA == "yes":
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
23 -pre $pre -mat $mat
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
24 #end if
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
25
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
26 ## prepare bowtie index
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
27 #set index_path = ''
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
28 #if str($reference_genome.source) == "history":
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
29 bowtie-build "$reference_genome.own_file" genome; ln -s "$reference_genome.own_file" genome.fa;
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
30 #set index_path = 'genome'
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
31 #else:
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
32 #set index_path = $reference_genome.index.fields.path
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
33 #end if
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
34
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
35
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
36 -gfa ${index_path}.fa -idx $index_path -mis $mismatch -i $config -fa $reads -e $e -f $f -r $r -dis $dis -flank $flank -mfe $mfe > run.log
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
37 </command>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
38
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
39 <inputs>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
40
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
41 <!-- reference genome -->
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
42 <conditional name="reference_genome">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
43 <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
44 <option value="indexed">Use a built-in index</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
45 <option value="history">Use one from the history</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
46 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
47 <when value="indexed">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
48 <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
49 <options from_data_table="bowtie_indexes">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
50 <filter type="sort_by" column="2"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
51 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
52 </options>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
53 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
54 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
55 <when value="history">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
56 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
57 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
58 </conditional>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
59
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
60 <conditional name="params">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
61 <param name="known_microRNA" type="select" label="Analysis known microRNAs(eg. from mirbase)">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
62 <option value="yes" selected="true">yes</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
63 <option value="no">no</option>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
64 </param>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
65 <when value="yes">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
66 <param name="mat" type="data" label="mature microRNA sequence file" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
67 <param name="pre" type="data" label="precursor microRNA sequence fie" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
68 </when>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
69 </conditional> <!-- params -->
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
70
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
71 <param name="config" type="data" label="Raw data configs file" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
72 <param name="reads" type="data" label="Input Fasta. file of candidate microRNA sequence" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
73
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
74
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
75 <param name="mismatch" type="integer" value="0" label="number of allowed mismatches when mapping reads to genome" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
76 <param name="e" type="integer" value="2" label="number of nucleotides upstream of the mature sequence to consider" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
77 <param name="f" type="integer" value="5" label="number of nucleotides downstream of the mature sequence to consider" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
78 <param name="r" 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
79 <param name="dis" type="integer" value="200" label="Maximal space between miRNA and miRNA*" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
80 <param name="flank" type="integer" value="10" label="Flank sequence length of miRNA precursor" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
81 <param name="mfe" type="float" value="-30" label="Maximal free energy allowed for a miRNA precursor" />
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
82
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
83 </inputs>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
84
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
85 <outputs>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
86 <data format="txt" name="known microRNA express list" from_work_dir="miRNA_out/known_microRNA_express.txt" label="${tool.name} on ${on_string}: known microRNA express list">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
87 <filter>(params['known_microRNA'] == 'Yes')</filter>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
88 </data>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
89 <data format="txt" name="known microRNA express alignment" from_work_dir="miRNA_out/known_microRNA_express.aln" label="${tool.name} on ${on_string}: known microRNA express alignment">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
90 <filter>(params['known_microRNA'] == 'Yes')</filter>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
91 </data>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
92 <data format="txt" name="known microRNA moRs result" from_work_dir="miRNA_out/known_microRNA_express.moRs" label="${tool.name} on ${on_string}: known microRNA moRs result">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
93 <filter>(params['known_microRNA'] == 'Yes')</filter>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
94 </data>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
95 <data format="txt" name="known microRNA precursor file" from_work_dir="miRNA_out/known_microRNA_precursor.fa" label="${tool.name} on ${on_string}: known microRNA precursor file">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
96 <filter>(params['known_microRNA'] == 'Yes')</filter>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
97 </data>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
98 <data format="txt" name="known microRNA mature file" from_work_dir="miRNA_out/known_microRNA_mature.fa" label="${tool.name} on ${on_string}: known microRNA mature file">
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
99 <filter>(params['known_microRNA'] == 'Yes')</filter>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
100 </data>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
101 <data format="txt" name="novel microRNA express list" from_work_dir="miRNA_out/novel_microRNA_express.txt" label="${tool.name} on ${on_string}: novel microRNA express list"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
102 <data format="txt" name="novel microRNA precursor file" from_work_dir="miRNA_out/novel_microRNA_precursor.fa" label="${tool.name} on ${on_string}: novel microRNA precursor file"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
103 <data format="txt" name="novel microRNA mature sequence file" from_work_dir="miRNA_out/novel_microRNA_mature.fa" label="${tool.name} on ${on_string}: novel microRNA mature sequence file"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
104 <data format="txt" name="non-microRNA sequence FASTA file" from_work_dir="miRNA_out/non_miRNA_reads.fa" label="${tool.name} on ${on_string}: Sequence FASTA file of non-microRNA tags"/>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
105
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
106 </outputs>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
107
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
108 <help>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
109
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
110 </help>
7b5a48b972e9 Uploaded
big-tiandm
parents:
diff changeset
111 </tool>