Debian Codegraph @

scripts/README.autoAug

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % %
3 % Pipeline for training and running the gene finder AUGUSTUS automatically %
4 % %
5 % Xin Xing, Ralph Krimmel, Mario Stanke %
6 % University of Goettingen %
7 % Contact: Mario Stanke, [email protected] %
8 % %
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10
11 1. Introduction
12 2. System Overview
13 3. Software Components
14 4. Installation and Configuration
15 5. Typical Usage
16 6. Command Line Arguments
17 7. Component Scripts
18 a. autoAugPred.pl
19 b. autoAugTrain.pl
20
21
22
23 1. Introduction
24 ---------------
25
26 The purpose of this pipeline script is to run the AUGUSTUS training process and gene
27 prediction algorithm automatically on a given eukaryotic genome with
28 available cDNA evidence. The complete process contains the following steps.
29 These are encapsulated in this automatic training pipeline.
30
31 -- Construct an initial training set of genes (protein coding regions thereof), e.g. using PASA
32 -- Train AUGUSTUS to predict coding regions (i.e. without Untranslated Regions (UTR)) using the initial training set.
33 -- Predict coding regions of genes in your genome (both ab initio and using hints from cDNA)
34 -- Train the UTR model of AUGUSTUS using EST-supported genes and EST alignments.
35 -- Predict genes including UTRs in your genome using hints from cDNA.
36
37 The first step is optional and can be replaced by preparing your own training set of genes. For a schema of the
38 pipeline look at the poster in the doc folder.
39
40 TIP: Please manually/visually check the results of the pipeline, e.g. by loading them into a browser.
41 The pipeline outputs files for tracks on a GBrowse.
42
43 WARNING: Please do not assume that you get the best possible results from a fully automatic pipeline.
44 Eukaryotic gene prediction is still a complex craft and some beasts are just different.
45
46 2. System Overview
47 ------------------
48
49 This program runs on a UNIX/LINUX-based architecture and involves
50 components written in Perl and C++. Results of the training-set generating step (PASA) are stored
51 primarily within a MySQL database. The whole pipeline can take in the order of 10 CPU days on a
52 medium complete genome, so please be patient and consider using a compute cluster.
53 If you happen to have a Sun Grid Engine available you can configure the pipeline to run in parallel
54 and completely automatically. If you are using another cluster, the job scripts will be created and you
55 can then submit them manually using your batch job submission system.
56
57 3. Software Components
58 -----------------------------------
59
60 AUGUSTUS: Download from https://github.com/Gaius-Augustus/Augustus
61
62 BLAT: You get Jim Kent's alignment program at http://users.soe.ucsc.edu/~kent/src/
63 Also install pslCDnaFilter which is part of the Jim Kent src tree
64 (http://hgwdev.cse.ucsc.edu/~kent/src/unzipped/hg/pslCDnaFilter/).
65
66 PASA: Download the Program to Assemble Spliced Alignments from
67 Sourceforge: http://sourceforge.net/projects/pasa
68 You do not need PASA if you already have a training set of genes for your species.
69
70 SCIPIO: Install SCIPIO if you have training genes in the form of protein sequences.
71 SCIPIO can then find their gene structures in the genome. Most users will not need this.
72 http://www.webscipio.org/
73
74
75 4. Installation and Configuration
76 ---------------------------------
77
78 Install the required components according to their documentation.
79 Make sure you have set the environment variables AUGUSTUS_CONFIG_PATH and those for
80 PASA. That means for example lines such as
81 export AUGUSTUS_CONFIG_PATH=/home/mario/augustus/config
82 export PASAHOME=/home/mario/PASA
83 shall be written in your startup script (like ~/.bashrc). Furthermore,
84 all scripts of AUGUSTUS and PASA shall be executable. For
85 details see the documentations of AUGUSTUS and PASA.
86
87 If you use PASA with GMAP instead of BLAT then please note that PASA is currently not fully compatible
88 with GMAP versions after the version from 2007-09-28. If you use a newer GMAP version you might have to
89 remove the "-S" option in the PASA script scripts/process_GMAP_alignments.pl so it says:
90 gmap_setup -D gmap_db_dir -d $genome_db $genome_db
91 (Although one user reported to us that GMAP-2012-04-07 needs exactly the -S tag!)
92
93 Pay attention on how to configure PASA with MySQL! If you want to run PASA without root privileges, you
94 should first create a database for PASA (e.g. dbname-PASA, user priv > read and write), and then create
95 a new database with name PASAspeciesname, where speciesname is the name you use in --species=speciesname.
96
97 Furthermore, if you are using a cluster, AUGUSTUS should be installed there as well. The
98 path to "augustus" should also be concatenated to the "PATH" in your cluster.
99
100 In case you are using a Sun Grid Engine and you want to use the option "noninteractive" (see section 6.),
101 configure your ssh so that you can login on the cluster without having to type a password.
102
103 Make sure to include the augustus/scripts directory in your PATH environment variable!
104 There is test data in augustus/examples/autoAug for testing this pipeline. I recommend you
105 test the installation on this small set first to quickly detect possible installation problems.
106
107
108
109 5. Typical Usage
110 ----------------
111
112 First create a new directory to store all files created by the pipeline.
113
114 Situation 1:
115
116 You already have a set of training genes (e.g. constructed from ESTs using PASA).
117 The way you run the pipeline depends on whether you want to use a compute cluster
118 to run the prediction jobs in parallel or whether you want to run it on a single PC.
119 The easiest but slower way is to run everything sequentially in one command, e.g.
120
121 >autoAug.pl -g genome.fa -t traingenes.gff --species=yourSpecies --cdna=cdna.fa -v --singleCPU --useexisting
122
123 traingenes.gff is the set of training gene structures in GFF format (e.g. as produced by PASA).
124 Alternatively you can use -t traingenes.gb if you have a training set
125 in Genbank format. This has the advantage that the training genes can be based
126 on a different DNA sequence than genome.fa.
127 cdna.fa is a fasta format file with all available cDNA sequences (ESTs, 454 transcripts, mRNA).
128 In a first test run we recommend to use the option --optrounds=0 to skip the
129 optimization, which usually takes most time.
130
131 If you have a compute cluster you can remove the option --singleCPU from above
132 command. In that case the program flow is interrupted at certain times so you
133 can submit the jobs on your cluster. Simply follow the output prompts. If your
134 SGE cluster happens to be set as in section 4 you can also use conveniently
135
136 >autoAug.pl -g genome.fa -t traingenes.gff --species=yourSpecies --cdna=cdna.fa -v --noninteractive
137
138 Note: For this pipeline you only need a training set with coding regions, even
139 if you want AUGUSTUS to predict the UTRs. It will construct a training set of
140 UTRs from EST alignments.
141
142 Situation 2:
143
144 You can just input a cDNA sequence file in FASTA format, and let PASA extract
145 a training set of genes. You need to install PASA for this separately.
146
147 >autoAug.pl -g genome.fa --species=yourSpecies -c cdna.fa -v -v --pasa --useGMAPforPASA --useexisting
148
149 Then follow the output prompts. If your cluster is set as in section 4 you can also use the option --noninteractive.
150
151
152
153 6. Command Line Arguments
154 -------------------------
155
156 The program supports file name arguments with absolute path (i.e. file name begin with "/") as well as with
157 relative path (beginning with "..", "~" etc.).
158 The keywords (such as genome) can be abbreviated (e.g. "ge") to the extend that they are still unique.
159
160 --genome=genomeFile
161 genomeFile is a file in Fasta format with the genome assembly
162
163 --trainingset=trainingfile
164 trainingfile is a file with training genes in Genbank format, GFF format or protein FASTA format
165
166
167 --species=sname
168 sname is species name. This is used to identify the parameter set later. The program will check if a
169 directory 'sname' already exists under $AUGUSTUS_CONFIG_PATH/species/.
170 If there is one, the program will be aborted unless you specify --useexisting.
171
172 --cdna=cdna.fa
173 cdna.fa is a cdna sequence file in the FASTA format (typically EST sequences or 454)
174
175 --pasa
176 This argument switches the PASA function on for creating a training set of genes from the cDNA, default: off.
177
178 --useGMAPforPASA
179 use GMAP instead of BLAT in the PASA run
180
181 --hints=hintsfile
182 hintsfile is a file with extrinsic evidence about the location and structure of genes, see documentation of AUGUSTUS.
183
184 --estali=estfile
185 cDNA alignments in PSL format (as generated by BLAT and GMAP) are used to construct UTRs
186
187 --noutr
188 use this if you do not want predictions of untranslated regions and want to safe a bunch of time
189 However, note that usually the predictions for the coding regions are better with UTRs turned on, because
190 typical EST alignments at the transcript ends can be better "interpreted" by AUGUSTUS.
191
192 --verbose=n
193 verbosity level 0, 1, 2, 3. Default: 2. You can also use a shortcut: "-v", "-v -v" or "-v -v -v"
194
195 --workingdir=/path/to/wd/
196 In the working directory results and temporary files are stored. Default: current working directory
197
198 --noninteractive
199 switch it on to avoid manual operation in cluster, it works only if you use a SUN GRID ENGINE cluster
200
201 --clustername=cname
202 set you SUN GRID ENGINE cluster name by using --noninteractive. Default: fe
203
204
205
206 7. Component Scripts
207 ------------------------------------
208
209 autoAug.pl uses two the two scripts autoAugTrain.pl and autoAugPred.pl for training and prediction subtasks that
210 are important steps of their own.
211
212 a. autoAugPred.pl predict genes with AUGUSTUS on genomes
213
214 Once parameters for a species have been trained, you can use this script to (re)predict genes on your genome,
215 e.g. when you have new data.
216
217
218 Usage:
219
220 autoAugPred.pl [OPTIONS] --genome=genome.fa --species=sname
221 autoAugPred.pl [OPTIONS] --genome=genome.fa --species=sname --hints=hintsfile
222
223 --genome=genome.fa
224 FASTA file with DNA sequences for training
225
226 --species=sname
227 species name as used by AUGUSTUS
228
229 --hints=hintsfile
230 run AUGUSTUS using extrinsic information from hintsfile
231
232 --noninteractive
233 for SGE users, who have configurated openssh key
234 with this option one can run AUGUSTUS automatically
235
236 --utr
237 switch on prediction of untranslated regions. Off by default.
238
239 --hints=hintsfile
240 run AUGUSTUS with hintsfile
241
242 --verbose
243 the verbosity level
244
245 --remote=clustername
246 works only by using --noninteractive, specify the SGE cluster name for noninteractive, default by "fe"
247
248
249 b. autoAugTrain.pl: train AUGUSTUS automatically
250
251
252 Usage:
253
254 autoAugTrain.pl [OPTIONS] --species=sname --trainingset=training.gb
255 autoAugTrain.pl [OPTIONS] --species=sname --genome=genome.fa --trainingset=genes.gff
256 autoAugTrain.pl [OPTIONS] --species=sname --genome=genome.fa --trainingset=proteins.fa
257 autoAugTrain.pl [OPTIONS] --species=sname --genome=genome.fa --species=sname --utr --estali=cdna.psl --aug=augustus.gff
258
259 --species=sname
260 species name as used by AUGUSTUS
261
262 --trainingset=genes.gb
263 genes.gb is a file with training genes a Genbank format. For examples for the exact format look at
264 the files in http://bioinf.uni-greifswald.de/webaugustus/datasets
265
266 --trainingset=genes.gff
267 genes.gff is a file with training genes in GFF format
268
269 --trainingset=proteins.fa
270 proteins.fa is a file with protein sequences from the target species or a very close relative
271 You can use this when the structures 'got lost' or you changed the assembly.
272
273 --genome=genome.fa
274 fasta file with DNA sequences for training
275 genome.fa should include the corresponding
276 sequences in this case
277
278 --est=cdna.f.psl
279 EST alignments are used to guess the UTR and its end point.
280
281 --utr
282 Switch it on to train AUGUSTUS with untranslated regions. Off by default
283
284 --flanking_DNA=length
285 flanking_DNA length, default:4000
286
287
288 --verbose
289 verbosity level of the program, default
290 level: 1, max level: 3
291