12
|
1 <tool id="alignTophat" name="align RNAseq" version="0.0.1">
|
|
2 <description>Align directionnal RNAseq to obtain bedgraphs and raw count file</description>
|
|
3 <command interpreter="perl">
|
|
4
|
|
5 ./alignTophat.pl
|
|
6
|
|
7 --fastq ${first_input}
|
|
8 --fastq_n ${first_input.name}
|
|
9
|
|
10 #if $Genome.refGenomeSource == "history":
|
|
11 --ref "${Genome.ownFile}"
|
|
12 --build_ref
|
|
13 #else:
|
|
14 --ref "${Genome.indices.fields.path}"
|
|
15 #end if
|
|
16
|
|
17 #if $contaminants.refGenomeSource == "history":
|
|
18 --contaminants "${contaminants.ownFile}"
|
|
19 --build_contaminant
|
|
20 #else:
|
|
21 --contaminants "${contaminants.indices.fields.path}"
|
|
22 #end if
|
|
23 #if $anno.bedpipe == "history":
|
|
24 --anno "${anno.ownFile}"
|
|
25 #else:
|
|
26 --anno "${anno.indices.fields.path}"
|
|
27 #end if
|
|
28
|
|
29 --mis $mis
|
|
30 --ma $ma
|
|
31
|
|
32 --dirbam $dirbam
|
|
33 --dirbamCont $dirbamcont
|
|
34 --dirbedgraph $dirbedgraph
|
|
35
|
|
36 --text $text
|
|
37
|
|
38 --random_w $rand
|
|
39 --find $idDir.find
|
|
40 --direction $idDir.direc
|
|
41 </command>
|
|
42 <inputs>
|
|
43
|
|
44 <param format="fastqsanger" name="first_input" type="data" label="fastq produced by fasteris" help=""/>
|
|
45
|
|
46
|
|
47 <conditional name="Genome">
|
|
48 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?">
|
|
49 <option value="indexed">Use a built-in index</option>
|
|
50 <option value="history">Use one from the history</option>
|
|
51 </param>
|
|
52 <when value="indexed">
|
|
53 <param name="indices" type="select" label="Select a reference genome">
|
|
54 <options from_data_table="bowtie2_indexes">
|
|
55 <filter type="sort_by" column="2" />
|
|
56 <validator type="no_options" message="No indexes are available" />
|
|
57 </options>
|
|
58 </param>
|
|
59 </when>
|
|
60 <when value="history">
|
|
61 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
62 </when>
|
|
63 </conditional>
|
|
64
|
|
65
|
|
66 <conditional name="Genome">
|
|
67 <param name="refGenomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?">
|
|
68 <option value="indexed">Use a built-in index</option>
|
|
69 <option value="history">Use one from the history</option>
|
|
70 </param>
|
|
71 <when value="indexed">
|
|
72 <param name="indices" type="select" label="Select a reference genome">
|
|
73 <options from_data_table="bowtie2_indexes">
|
|
74 <filter type="sort_by" column="2" />
|
|
75 <validator type="no_options" message="No indexes are available" />
|
|
76 </options>
|
|
77 </param>
|
|
78 </when>
|
|
79 <when value="history">
|
|
80 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
81 </when>
|
|
82 </conditional>
|
|
83
|
|
84 <conditional name="contaminants">
|
|
85 <param name="refGenomeSource" type="select" label="Will you select contaminants database from your history or use a built-in index?">
|
|
86 <option value="indexed">Use a built-in index</option>
|
|
87 <option value="history">Use one from the history</option>
|
|
88 </param>
|
|
89 <when value="indexed">
|
|
90 <param name="indices" type="select" label="Select contaminants reference">
|
|
91 <options from_data_table="bowtie2_indexes">
|
|
92 <filter type="sort_by" column="2" />
|
|
93 <validator type="no_options" message="No indexes are available" />
|
|
94 </options>
|
|
95 </param>
|
|
96 </when>
|
|
97 <when value="history">
|
|
98 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select a reference from history" />
|
|
99 </when>
|
|
100 </conditional>
|
|
101
|
|
102 <conditional name="anno">
|
|
103 <param name="bedpipe" type="select" label="Will you select an annotation file from your history or use a built-in index?" help="tab file format, (chr start end id score strand type description1 description2 description3">
|
|
104 <option value="indexed">Use a built-in index</option>
|
|
105 <option value="history">Use one from the history</option>
|
|
106 </param>
|
|
107 <when value="indexed">
|
|
108 <param name="indices" type="select" label="Select annotation file">
|
|
109 <options from_data_table="bed_pipe">
|
|
110 <filter type="sort_by" column="2" />
|
|
111 <validator type="no_options" message="No indexes are available" />
|
|
112 </options>
|
|
113 </param>
|
|
114 </when>
|
|
115 <when value="history">
|
|
116 <param name="ownFile" type="data" format="bed" metadata_name="dbkey" label="Select a reference from history" />
|
|
117 </when>
|
|
118 </conditional>
|
|
119
|
|
120
|
|
121 <param name="mis" type="integer" value="0" label="mismatches"/>
|
|
122 <param name="ma" type="integer" value="0" label="normalization value" help="e.g number of mappers (if 0 auto)"/>
|
|
123 <param name="rand" type="boolean" checked="false" label="work on multi-mappers randomly assigned"/>
|
|
124
|
|
125
|
|
126 <conditional name="idDir">
|
|
127 <param name="direc" type="boolean" checked="true" label="directional library"/>
|
|
128 <when value="false">
|
|
129 <param name="find" type="hidden" value="false"/>
|
|
130 </when>
|
|
131 <when value="true">
|
|
132 <param name="find" type="boolean" checked="true" label="auto sens finder"/>
|
|
133 </when>
|
|
134 </conditional>
|
|
135 </inputs>
|
|
136
|
|
137 <outputs>
|
|
138 <data format="tar" name="dirbam" label="alignement_zip_${first_input.name}"/>
|
|
139 <data format="tar" name="dirbamcont" label="contaminant_zip_${first_input.name}"/>
|
|
140 <data format="tar" name="dirbedgraph" label="bedgraph_zip_${first_input.name}"/>
|
|
141 <data format="tabular" name="text" label="raw_count_tabular_${first_input.name}_rand_${rand}"/>
|
|
142 </outputs>
|
|
143
|
|
144 <requirements>
|
|
145 <requirement type="package" version="2.2.6">bowtie2</requirement>
|
|
146 <requirement type="package" version="2.1.0">tophat</requirement>
|
14
|
147 <requirement type="package" version="2.24">bedtools</requirement>
|
13
|
148 <requirement type="package" version="1.2">samtools</requirement>
|
12
|
149 </requirements>
|
|
150
|
|
151 </tool>
|