annotate alignTophat.xml @ 13:cc676ee7fe40 draft

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