annotate ALFA/ALFA.xml @ 32:b26aec436ab5 draft

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