annotate alignTophat.xml @ 5:411b36116b7a draft

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