annotate ALFA/alfa_wrapper.xml @ 24:887c6cb328e9 draft

Uploaded
author charles-bernard
date Thu, 27 Oct 2016 10:49:16 -0400
parents 1714165f5df0
children 37fce32b0298
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
1 <tool id="alfa" name="ALFA" version="0.1.0">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
2 <description>- Compute and display distribution of reads by genomic categories</description>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
3
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
4 <!-- ALFA requires bedtools suite v2.20.0 and above -->
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
5 <requirements>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
6 <requirement type="package" version="2.24">bedtools</requirement>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
7 <requirement type="package" version="1.2">samtools</requirement>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
8 <requirement type="package" version="1.4">matplotlib</requirement>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
9 </requirements>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
10
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
11 <command interpreter="python">
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
12 <![CDATA[
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
13 ALFA_wrapper.py
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
14
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
15 --project_name "${projectName}"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
16
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
17 ##__INPUT 1__##
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
18 #if str ( $annotation.annotationSource['annotationSourceSelection'] ) == "index"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
19 --index $annotation.annotationSource['strandedIndex'] $annotation.annotationSource['unstrandedIndex']
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
20 #else if str ( $annotation.annotationSource['annotationSourceSelection'] ) == "built_in_index"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
21 --bi_index $annotation.annotationSource.built_in_index_prefix.fields.prefix
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
22 #else
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
23 --annotation $annotation.annotationSource['annotationFile']
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
24 #end if
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
25
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
26 ##__INPUT 2__##
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
27 --reads_format $reads.readsType['readsTypeSelection']
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
28 --reads
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
29 #for $i, $r in enumerate ( $reads.readsType['readsList'] )
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
30 __fname__$r.readsFile
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
31 __label__$r.readsLabel
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
32 #end for
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
33 --strandness $reads['strandness']
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
34
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
35 ##__OUTPUT FILES__##
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
36 #if str ( $outputFiles['plot'] ) == "True"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
37 #if str ( $outputOptions['plotFormat'] ) == "pdf"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
38 --output_pdf $outputPdf
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
39 #else if str ( $outputOptions['plotFormat'] ) == "png"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
40 --output_png $outputCategoriesPng $outputBiotypesPng
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
41 #else
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
42 --output_svg $outputCategoriesSvg $outputBiotypesSvg
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
43 #end if
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
44 #end if
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
45 #if str ( $outputFiles['countFile'] ) == "True"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
46 --output_count $outputCountFile
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
47 #end if
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
48 #if str ( $outputFiles['index'] ) == "True"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
49 --output_index $outputStrandedIndex $outputUnstrandedIndex
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
50 #end if
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
51
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
52 ##__OUTPUT OPTIONS__##
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
53 --categories_depth $outputOptions['categoriesDepth']
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
54 #if str ( $outputFiles['plot'] ) == "True"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
55 --plot_format $outputOptions['plotFormat']
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
56 #if str ( $outputOptions.plotThreshold['plotThresholdChoice'] ) == "True"
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
57 --threshold $outputOptions.plotThreshold.yMin $outputOptions.plotThreshold.yMax
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
58 #end if
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
59 #end if
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
60
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
61 --log_report $logReport
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
62 --galaxy_root $__root_dir__
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
63 --tool_dir $__tool_directory__
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
64 ]]>
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
65 </command>
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
66 <inputs>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
67 <param name="projectName" value="ALFA" type="text" size="20" label="Project Name">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
68 <validator type="empty_field" message="Please, specify a name for your project."/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
69 </param>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
70
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
71 <section name="annotation" title="INPUT 1: Annotation File (GTF format)" expanded="True">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
72 <conditional name="annotationSource">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
73 <param name="annotationSourceSelection" type="select" label="Select the source of your annotated sequence/genome">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
74 <option value="personal_gtf" selected="true">Personal annotation file (GTF format)</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
75 <option value="index">Stranded and Unstranded Indexes previously generated by ALFA (Index format)</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
76 <option value="built_in_index">Built-in indexes among a list of referenced genome (Index format)</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
77 </param>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
78 <when value="personal_gtf">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
79 <param name="annotationFile" type="data" format="Gff, Gtf" label="Select your personal annotation file (GTF format)">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
80 </param>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
81 </when>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
82 <when value="index">
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
83 <param name="strandedIndex" type="data" format="index" label="Select your ALFA Stranded index file (index format)"/>
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
84 <param name="unstrandedIndex" type="data" format="index" label="Select your ALFA Unstranded index file (index format)"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
85 </when>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
86 <when value="built_in_index">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
87 <param name="built_in_index_prefix" type="select" label="Select Genome">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
88 <options from_data_table="alfa_indexes">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
89 <validator type="no_options" message="No indexes are available for the selected input dataset" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
90 </options>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
91 </param>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
92 </when>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
93 </conditional>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
94 </section>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
95
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
96 <section name="reads" title="INPUT 2: Aligned Reads File(s) of the annotated sequence (BAM or BEDGRAPH format)" expanded="True">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
97 <conditional name="readsType">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
98 <param name="readsTypeSelection" type="select" label="Select the format of the reads file(s)">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
99 <option value="bam" selected="true">BAM</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
100 <option value="bedgraph">BEDGRAPH</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
101 </param>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
102 <when value="bam">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
103 <repeat name="readsList" title="Reads File" min="1" >
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
104 <param name="readsFile" type="data" format="Bam" label="Select the reads file of your annotated sequence (BAM format)"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
105 <param name="readsLabel" type="text" size="20" value="" label="Label of the reads" optional="True"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
106 </repeat>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
107 </when>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
108 <when value="bedgraph">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
109 <repeat name="readsList" title="Reads File" min="1">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
110 <param name="readsFile" type="data" format="Bed" label="Select the reads file of your annotated sequence (BEDGRAPH format)"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
111 <param name="readsLabel" type="text" size="20" value="" label="Label of the reads" optional="True"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
112 </repeat>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
113 </when>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
114 </conditional>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
115 <param name="strandness" type="select" label="Select the strandness of your mapped reads dataset">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
116 <option value="unstranded" selected="true">Unstranded (reads will match genomic features on both forward and reverse strands of the annotated sequence)</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
117 <option value="forward">Forward (reads will match only genomic features on the forward strand of the annotated sequence)</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
118 <option value="reverse">Reverse (reads will match only genomic features on the reverse strand of the annotated sequence)</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
119 </param>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
120 </section>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
121
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
122 <section name="outputFiles" title="OUTPUT FILES: Choose the output files" expanded="False">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
123 <param name="plot" type="boolean" truevalue="True" falsevalue="False" checked="True" label="Categories and Biotypes Histograms" help="Plot the nucleotides distribution of the reads per genomic categories and biotypes"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
124 <param name="countFile" type="boolean" truevalue="True" falsevalue="False" checked="True" label="Categories Count File" help="Edit the exact count of nucleotides in the reads per genomic categories and biotypes"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
125 <param name="index" type="boolean" truevalue="True" falsevalue="False" checked="False" label ="Indexes" help="Print the resulting stranded and unstranded indexes from the gtf input file (useful if you plan to run ALFA again with this annotated sequence)"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
126 </section>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
127
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
128 <section name="outputOptions" title="ADVANCED SETTINGS" expanded="False">
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
129 <param name="categoriesDepth" type="select" label="Categories to Display">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
130 <option value="1">gene | intergenic</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
131 <option value="2">exon | intron | intergenic</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
132 <option value="3" selected="true">5’-UTR | CDS | 3’-UTR | intron | intergenic</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
133 <option value="4">5’-UTR | start_codon | CDS | stop_codon | 3’-UTR | intron | intergenic</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
134 </param>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
135 <param name="plotFormat" type="select" label="Plot Options: Select graph format" help="Ignore if you did not choose the histograms output file">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
136 <option value="pdf" selected="true">pdf</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
137 <option value="svg">svg</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
138 <option value="png">png</option>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
139 </param>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
140 <conditional name="plotThreshold">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
141 <param name="plotThresholdChoice" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Plot Options: Modify y axis range of the normalized counts of bio-features" help="Ignore if you did not choose the histograms output file"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
142 <when value="True">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
143 <param name="yMin" type="float" value="-2.0" label="y min"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
144 <param name="yMax" type="float" value="2.0" label="y max"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
145 </when>
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
146 <when value="False"></when>
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
147 </conditional>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
148 </section>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
149 </inputs>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
150
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
151 <outputs>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
152 <data name="logReport" format="txt" label="${projectName}-Log Report"/>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
153 <data name="outputPdf" format="pdf" label="${projectName}-BioFeatures Distribution">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
154 <filter>outputFiles['plot'] is True and outputOptions['plotFormat'] == 'pdf'</filter>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
155 </data>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
156 <data name="outputCategoriesPng" format="png" label="${projectName}-Categories Distribution">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
157 <filter>outputFiles['plot'] is True and outputOptions['plotFormat'] == 'png'</filter>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
158 </data>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
159 <data name="outputBiotypesPng" format="png" label="${projectName}-Biotypes Distribution">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
160 <filter>outputFiles['plot'] is True and outputOptions['plotFormat'] == 'png'</filter>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
161 </data>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
162 <data name="outputCategoriesSvg" format="svg" label="${projectName}-Categories Distribution">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
163 <filter>outputFiles['plot'] is True and outputOptions['plotFormat'] == 'svg'</filter>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
164 </data>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
165 <data name="outputBiotypesSvg" format="svg" label="${projectName}-Biotypes Distribution">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
166 <filter>outputFiles['plot'] is True and outputOptions['plotFormat'] == 'svg'</filter>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
167 </data>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
168 <data name="outputCountFile" format="txt" label="${projectName}-Categories Count">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
169 <filter>outputFiles['countFile'] is True</filter>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
170 </data>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
171 <data name="outputStrandedIndex" format="txt" label="${projectName}-Stranded Index">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
172 <filter>outputFiles['index'] is True</filter>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
173 </data>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
174 <data name="outputUnstrandedIndex" format="txt" label="${projectName}-Unstranded Index">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
175 <filter>outputFiles['index'] is True</filter>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
176 </data>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
177 </outputs>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
178
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
179 <tests>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
180 <test>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
181 <param name="alfa_toy" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
182 <section name="annotation">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
183 <conditional name="annotationSource">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
184 <param name="annotationSourceSelection" value="personal_gtf" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
185 <param name="annotationFile" value="alfa_toy.gtf" ftype="gtf" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
186 </conditional>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
187 </section>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
188 <section name="reads">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
189 <conditional name="readsType">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
190 <param name="readsTypeSelection" value="bam" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
191 <repeat name="readsList">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
192 <param name="readsFile" value="alfa_toy.bam" ftype="bam" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
193 <param name="readsLabel" value="alfa_toy" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
194 </repeat>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
195 <param name="strandness" value="unstranded" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
196 </conditional>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
197 </section>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
198 <section name="outputFiles">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
199 <param name="plot" value="True" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
200 <param name="countFile" value="True" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
201 <param name="index" value="True" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
202 </section>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
203 <section name="outputOptions">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
204 <param name="categoriesDepth" value="3" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
205 <param name="plotFormat" value="pdf" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
206 <conditional name="plotThreshold">
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
207 <param name="plotThresholdChoice" value="False" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
208 </conditional>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
209 </section>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
210 <output name="outputPdf" file="alfa_toy-Biofeatures Distribution.pdf" ftype="pdf" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
211 <output name="outputCountFile" file="alfa_toy.categories_count" ftype="txt" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
212 <output name="outputStrandedIndex" file="alfa_toy.stranded.index" ftype="txt" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
213 <output name="outputUnstrandedIndex" file="alfa_toy.unstranded.index" ftype="txt" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
214 <assert_stdout>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
215 <has_text text="### End of the program" />
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
216 </assert_stdout>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
217 </test>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
218 </tests>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
219
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
220 <help>
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
221 <![CDATA[
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
222 **What it does**
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
223
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
224
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
225 | ALFA provides a global overview of features distribution composing New Generation Sequencing dataset(s).
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
226 |
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
227 | Given a set of aligned reads (BAM files) and an annotation file (GTF format), the tool produces plots of the raw and normalized distributions of those reads among genomic categories (stop codon, 5'-UTR, CDS, intergenic, etc.) and biotypes (protein coding genes, miRNA, tRNA, etc.). Whatever the sequencing technique, whatever the organism.
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
228
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
229 ----
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
230
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
231 **ALFA acronym**
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
232
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
233 - Annotation.Landscape.For.Aligned reads
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
234
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
235 ----
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
236
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
237 **Official documentation of the tool**
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
238
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
239
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
240 - https://github.com/biocompibens/ALFA
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
241
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
242 ----
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
243
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
244 **Detailed example**
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
245
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
246 - https://github.com/biocompibens/ALFA#detailed-example
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
247
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
248 ----
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
249
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
250 **Nota Bene**
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
251
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
252 * **Input 1: Annotation File**
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
253
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
254
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
255 | ALFA requires as first input an annotation file (sequence, genome...) in gtf format in order to generate alfa indexes needed in a second round of the program.
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
256 | Indexes are files which list all the coordinates of the categories (stop codon, 5'-UTR, CDS, intergenic...) and biotypes (protein coding genes, miRNA, tRNA, ...) encountered in the annotated sequence.
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
257 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
258
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
259 .. class:: warningmark
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
260
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
261 | Gtf File must be sorted.
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
262 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
263
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
264 .. class:: infomark
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
265
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
266 | Generation of indexes from an annotation file might be time consuming (i.e ~10min for the human genome). Thus, ALFA allows the user to submit directly indexes generated in previous runs.
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
267 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
268
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
269 .. class:: infomark
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
270
24
887c6cb328e9 Uploaded
charles-bernard
parents: 22
diff changeset
271 | ALFA also allows to use built-in indexes to save even more computational time. In order to generate easily these built-in indexes, install the data manager tool `data_manager_build_alfa_indexes`_ available on the toolshed.
887c6cb328e9 Uploaded
charles-bernard
parents: 22
diff changeset
272
887c6cb328e9 Uploaded
charles-bernard
parents: 22
diff changeset
273 .. _data_manager_build_alfa_indexes: https://toolshed.g2.bx.psu.edu/view/charles-bernard/data_manager_build_alfa_indexes
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
274
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
275 * **Input 2: Reads**
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
276
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
277 | ALFA requires as second input a single or a set of mapped reads file(s) in either bam or bedgraph format. The coordinates of the mapped reads will be intersected with the according categories and biotypes mentioned in the indexes.
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
278 | The strandness option determines which strand of the annotated sequence will be taken into account during this intersection.
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
279 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
280
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
281 .. class:: warningmark
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
282
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
283 | Bam or Bedgraph file(s) must be sorted.
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
284 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
285
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
286 .. class:: warningmark
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
287
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
288 | Chromosome names in reads and in annotation file (gtf or indexes) must be the same for the intersection to occur
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
289 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
290
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
291 * **Output files**
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
292
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
293 | The result of the intersection is a count file displaying the count of nucleotides in the reads for each genomic categories and biotypes. From this count file, plots of the raw and normalized distributions of the reads among these categories are generated.
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
294 | In the output files section, the user can choose what kind of files he desires as ALFA output. Categories Count File and Plots are proposed by default.
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
295 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
296
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
297 .. class:: infomark
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
298
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
299 | The user can also select the 'indexes' option as output. This option is interesting if you plan to run ALFA again with the same submitted annotation file. *See Nota Bene/Input 1: Annotation File for more information.*
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
300 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
301
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
302 - `How the plots look like`_
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
303
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
304 .. _How the plots look like: https://github.com/biocompibens/ALFA#plots
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
305
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
306 |
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
307
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
308 - `How they are generated`_
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
309
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
310 .. _How they are generated: https://github.com/biocompibens/ALFA#detailed-example
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
311
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
312 ----
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
313
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
314 **ALFA Developpers**
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
315
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
316 | Benoît Noël and Mathieu Bahin: *compbio team, Institut de Biologie de l'Ecole Normale Supérieure de Paris*
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
317
22
1714165f5df0 Uploaded
charles-bernard
parents: 20
diff changeset
318 ]]>
18
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
319 </help>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
320
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
321 <citations>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
322 <citation type="bibtex">@MISC{
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
323 author="Benoît Noël and Mathieu Bahin"
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
324 title="ALFA: Annotation Landscape For Aligned reads"
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
325 crossref="https://github.com/biocompibens/ALFA"
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
326 institution="Institut de Biologie de l'Ecole Normale Supérieure de Paris"
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
327 }
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
328 </citation>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
329 </citations>
a1e2ab10b317 Uploaded
charles-bernard
parents:
diff changeset
330 </tool>