Debian Codegraph @

docs/tutorial-cgp/index.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html><head><title></title>
3 <link rel="stylesheet" type="text/css" href="augustus.css">
4 <script src="tutorial.js" type="text/javascript"></script>
5 </head><body>
6 <font size=-1>
7 Navigate to
8 <a href="cactus.html">Cactus alignments and assembly Hubs</a>.
9 <a href="de_novo.html">AugCGP de novo</a>.
10 <a href="rnaseq.html">AugCGP with RNA-Seq</a>.
11 <a href="liftover.html">Annotation transfer with AugCGP</a>.
12 <a href="rnaseq+liftover.html">Combining RNA-Seq and annotation evidence</a>.
13 <a href="hgm.html">Cross-species consistency of gene sets</a>.
14 </font>
15 <h1>Tutorial on comparative gene finding with <a href="http://bioinf.uni-greifswald.de/augustus/">AUGUSTUS-CGP</a></h1>
16 <table width=100% height=auto><tr><td width=50%>
17 CGP (comparative gene prediction) is a recent extension of <a href="http://bioinf.uni-greifswald.de/augustus/">AUGUSTUS</a> for clade annotation. It takes two or more genomes of related species and predicts all genes (only protein-coding and one isoform per gene) in all input genomes at the same time. AUGUSTUS-CGP can integrate the same types of evidence as in single-species mode for either a subset or all genomes. A genome alignment of the species is used to transfer evidence across genomes and to exploit evolution evidence for genes, e.g. by looking for conserved regions and regions that are under negative selection. For further reading, see <a href="http://bioinformatics.oxfordjournals.org/content/early/2016/08/24/bioinformatics.btw494">K&oumlnig et al. (2016)</a> <br><br>
18
19 In this tutorial we practice the most common applications of AUGUSTUS-CGP: de novo gene finding (i.e. only the raw genomes are used and no extrinsic evidence), integration of RNA-Seq evidence and lifting over annotations from one (or more) species to the other species in the clade. AUGUSTUS-CGP has three mandatory inputs: the set of genomes, each in Multi-FASTA format, an alignment of the genomes and a phylogenetic tree in NEWICK format. You don't have a whole-genome alignment for your clade? No problem - the tutorial covers how a whole-genome alignment can be created with progressiveCactus. The output alignment of progressiveCactus is in HAL format, which can be displayed as Assembly Hubs in the Genome Browser. In one of the exercise, we will set up such an Assembly Hub and show how gene tracks can be uploaded for visualization. If the phylogeny of the species is not known, we recommend using a star-like tree with uniform branch lengths.
20 </td><td width=50%>
21 <img src="figs/screenshot.png" width="98%" height=auto/>
22 </td></tr></table>
23
24
25 <h4>Styles</h4>
26 <p><span class="assignment">Assignments are in this color</span>. The lazy ones may go through very
27 fast through this tutorial by just reading these assignments and cutting and pasting the commands
28 that follow them (more or less).</p>
29 <p>
30 <span class="result">Results are in this color</span>.<br></p>
31 <p>
32 <a href="javascript:onoff('explain')" class="dlink"><span id="explain" title="explaind" class="dcross">[+]</span>
33 <span class="dtitle">Details are hidden...</span></a> <br>
34 <div id="explaind" class="details" style="display:none;">
35 You don't have to read this. If you get bored with the speed of the tutorial then you can read these details boxes.
36 </div></p>
37
38 <h3>Software Requirements</h3>
39 <p>
40 <ul>
41 <li><a href="http://bioinf.uni-greifswald.de/augustus/binaries/">Augustus</a><br><br>
42
43 <a href="javascript:onoff('cgp')" class="dlink"><span id="cgp" title="cgpd" class="dcross">[+]</span>
44 <span class="dtitle">Augustus-CGP dependencies ...</span></a> <br>
45 <div id="cgpd" class="details" style="display:none;">
46 <a href="javascript:onoff('do')" class="dlink"><span id="do" title="dod" class="dcross">[+]</span>
47 <span class="dtitle">dependencies</span></a> <br><br>
48 <div id="dod" class="details" style="display:none;">
49 <ul>
50 <li><a href="http://www.gnu.org/software/gsl/">GSL</a> (GNU Scientific Library)</br>
51 <span class="assignment">Install</span> via package manager, on UBUNTU/Debian linux</span>
52 <pre class="code">
53 sudo apt-get install libgsl-dev
54 </pre>
55 </li>
56 <li><a href="http://www.gnu.org/software/gsl/">Boost C++ Libraries</a> (>= V1_46_1)<br>
57 <span class="assignment">Install</span> via package manager, on UBUNTU/Debian linux</span>
58 <pre class="code">
59 sudo apt-get install libboost-all-dev
60 </pre>
61 </li>
62 <li><a href="http://www.gnu.org/software/gsl/">g++ compiler</a> (with C++0X support, e.g. >= V4.4)<br>
63 <span class="assignment">Install</span> via package manager, on UBUNTU/Debian linux</span>
64 <pre class="code">
65 sudo apt-get install build-essential
66 </pre>
67 <li><a href="http://www.gnu.org/software/gsl/">lpsolve</a> (mixed linear integer programming)<br>
68 <span class="assignment">Install</span> via package manager, on UBUNTU/Debian linux</span>
69 <pre class="code">
70 sudo apt-get install libsuitesparse-dev liblpsolve55-dev
71 </pre>
72 </li>
73 <li><a href="https://www.mysql.com">MySQL</a> (open-source relational database management system (RDBMS))<br>
74 <span class="assignment">Install</span> via package manager, on UBUNTU/Debian linux</span>
75 <pre class="code">
76 sudo apt-get install libmysql++-dev
77 </pre>
78 </li>
79 <li><a href="https://www.sqlite.org">SQLite</a> (relational database management system (RDBMS))<br>
80 <span class="assignment">Install</span> via package manager, on UBUNTU/Debian linux</span>
81 <pre class="code">
82 sudo apt-get install libsqlite3-dev
83 </pre>
84 </li>
85 </ul>
86 </div>
87 For convenience, you may want to , <span class="assignment">run</span> or <span class="assignment">add</span> this to your .bashrc file
88 <pre class="code">
89 export AUGUSTUS_CONFIG_PATH=&ltinstallation path&gt/augustus/config/
90 PATH=&ltinstallation path&gt/augustus/bin:&ltinstallation path&gt/augustus/scripts:$PATH
91 </pre>
92 </div><br>
93 Before starting with the tutorial make sure that following executables/scripts from the Augustus package are in the your global path<br><br>
94 <ul>
95 <li>augustus</li>
96 <li>homGeneMapping</li>
97 <li>load2sqlitedb</li>
98 <li>joingenes</li>
99 <li>gtf2bed.pl</li>
100 <li>gtf2gff.pl</li>
101 <li>hal2maf_split.pl</li>
102 </ul>
103 </li><br>
104 <li><a href="https://github.com/glennhickey/progressiveCactus">progressiveCactus</a><br><br>
105
106 <a href="javascript:onoff('dco')" class="dlink"><span id="dco" title="dcod" class="dcross">[+]</span>
107 <span class="dtitle">Installing progressiveCactus...</span></a> <br>
108 <div id="dcod" class="details" style="display:none;">
109 <span class="assignment">Download and install</span> progressiveCactus via gitHub
110 <br>
111 <pre class="code">
112 git clone git://github.com/glennhickey/progressiveCactus.git
113 cd progressiveCactus
114 git pull
115 git submodule update --init
116 make
117 </pre>
118 For convenience, you may want to <span class="assignment">run or add</span> this to your .bashrc file
119 <pre class="code">
120 export PATH=&ltinstallation path&gt/progressiveCactus/bin:&ltinstallation path&gt/progressiveCactus/submodules/kentToolBinaries:&ltinstallation path&gt/progressiveCactus/submodules/hal/bin:$PATH
121 export PYTHONPATH=&ltinstallation path&gt/progressiveCactus/submodules:$PYTHONPATH
122 </pre>
123 <a href="javascript:onoff('ts')" class="dlink"><span id="ts" title="tsd" class="dcross">[+]</span>
124 <span class="dtitle">Troubleshooting...</span></a> <br>
125 <div id="tsd" class="details" style="display:none;">
126 If you run into following error<br>
127 <pre class="code">
128 ImportError: No module named _sysconfigdata_nd
129 </pre>
130 <span class="assignment">find</span> the location of the module <tt>_sysconfigdata_nd.py</tt> and <span class="assignment">create</span> a soft link to the directory of the local python installation in the progressiveCactus folder
131 <pre class="code">
132 find / -name "*_sysconfigdata_nd.py"
133 ln -s /path/to/_sysconfigdata_nd.py /path/to/progressiveCactus/python/lib/python2.7/
134 </pre>
135 If you get something like "ImportError: No module named Bio", when running the <tt>hal2assemblyHub</tt> tool, the biopython package is most likely missing.<br>
136 <span class="assignment">Install</span> the Biopython package with <br>
137 <pre class="code">sudo apt install python-biopython</pre>
138 or
139 <span class="assignment">download</span> the biopython source code from the <a href="https://github.com/biopython/biopython">git repository</a> and <span class="assignment">install</span> it locally:
140 <pre class="code">
141 unzip biopython-master.zip
142 cd biopython-master/
143 python setup.py build
144 python setup.py test
145 </pre>
146 <span class="assignment">Make</span> soft links to the directory of the local python installation in the <tt>progressiveCactus</tt> folder
147 <pre class="code">
148 ln -s /path/to/biopython-master/Bio/ /path/to/progressiveCactus/python/lib/python2.7/site-packages/
149 ln -s /path/to/biopython-master/BioSQL/ /path/to/progressiveCactus/python/lib/python2.7/site-packages/
150 </pre>
151 </div>
152 </br>
153 </div><br>
154 Before starting with the tutorial make sure that following executables/scripts from the progressiveCactus package are in your global path<br><br>
155 <ul>
156 <li>runProgressiveCactus.sh</li>
157 <li>hal2assemblyHub.py</li>
158 <li>halLiftover</li>
159 <li>hal2maf</li>
160 </ul>
161
162 </li>
163 </ul>
164 </p>
165
166 <h3>Example Data</h3>
167
168 Our example data set covers a 2 Megabase syntentic region in 8 vertebrates<br>
169
170 <table style="text-align: left; padding: 15px; table-layout: fixed; width: 800px;">
171 <tr>
172 <th>species</th>
173 <th>assembly</th>
174 <th>genomic region</th>
175 </tr>
176 <tr>
177 <td>human</td>
178 <td>hg38</td>
179 <td>chr16:186964-397118</td>
180 </tr>
181 <tr>
182 <td>mouse</td>
183 <td>mm10</td>
184 <td>chr17:26104939-26283331</td>
185 </tr>
186 <tr>
187 <td>rat</td>
188 <td>rn6</td>
189 <td>chr10:15470071-15570014</td>
190 </tr>
191 <tr>
192 <td>cow</td>
193 <td>bosTau8</td>
194 <td>chr25:224163-380253</td>
195 </tr>
196 <tr>
197 <td>dog</td>
198 <td>canFam3</td>
199 <td>chr6:40126702-40311429</td>
200 </tr>
201 <tr>
202 <td>rhesus</td>
203 <td>rheMac3</td>
204 <td>chr20:149129-369768</td>
205 </tr>
206 <tr>
207 <td>rabbit</td>
208 <td>monDom5</td>
209 <td>chr6:149454308-149994826</td>
210 </tr>
211 <tr>
212 <td>chicken</td>
213 <td>galGal4</td>
214 <td>chr14:12108253-12258251</td>
215 </tr>
216 </table><br>
217
218 All files are in the <a href="data/" target="_blank">data directory</a>. We recommend
219 you work directly in this directory.
220
221 <ul>
222 <li> <a href="data/genomes/"><tt>genomes/</tt></a>: directory with the fasta files</li>
223 <li><a href="data/tree.nwk"><tt>tree.nwk</tt></a>: phylogenetic tree of the 8 vertebrates.</li>
224 <li><a href="data/hints/"><tt>hints/</tt></a>: directory with hints files for human, mouse, dog and chicken, each containing 'intron' and 'exonpart' hints from RNA-Seq alignments</li>
225 <li><a href="data/refseq/refseq.hg38.gtf"><tt>refseq/refseq.hg38.gtf</tt></a>: hg38 RefSeq annotation in chr16:186964-397118</li>
226 </ul>
227
228 <h3>For Cheaters: <span class="result">Result Files</span></h3>
229 You can use the <a href="results/" target="_blank">files in the results directory</a> to catch on if you are behind or to compare your results.
230
231 <br>
232
233 <h3>Exercise 1: Creating a whole-genome alignment</h3>
234 <ol>
235 <li> <span class="assignment">Create a HAL alignment</span> with <tt>progressiveCactus</tt> as described in <a href="cactus.html#runCactus">1. Running progressive Cactus</a>
236 <li> <span class="assignment">Export HAL alignment to MAF</span> and <span class="assignment">split</span> alignment into overlapping chunks for parallel computing as described in <a href="cactus.html#hal2maf">2. Export HAL alignment as MAF</a>
237 <li> <a href="cactus.html#makeHub"> <span class="assignment">Build a comparative assembly hub</span></a>
238 <li> <a href="cactus.html#loadHub"> <span class="assignment">Load the hub and browser the alignment</span></a>
239 <li> <a href="cactus.html#loadAnno"> <span class="assignment">Load a reference annotation to the hub</span></a>
240 </ol>
241
242 <h3>Exercise 2: <i>De novo</i> comparative gene finding with AUGUSTUS-CGP</h3>
243 <a href="javascript:onoff('ex2')" class="dlink"><span id="ex2" title="ex2d" class="dcross">[+]</span>
244 <span class="dtitle">Prerequisites</span></a> <br>
245 <div id="ex2d" class="details" style="display:none;">
246 <ul>
247 <li>Alignment generation can be skipped by copying the folder <a href="results/mafs/"><tt>mafs/</tt></a> from the results into the data directory.</li>
248 </ul>
249 </div>
250 <ol>
251 <li><a href="de_novo.html#loadFa"><span class="assignment">Load genomes into an SQLite database</span></a>
252 <li><a href="de_novo.html#runAug"><span class="assignment">Run AUGUSTUS in CGP mode</span></a>
253 <li><a href="de_novo.html#merge"><span class="assignment">Merge gene predictions from parallel runs</span></a>
254 <li><a href="de_novo.html#makeBeds"><span class="assignment"> Upload gene predictions into the assembly hub</span></a>
255 </ol>
256
257 <h3>Exercise 3: RNA-Seq-based comparative gene finding with AUGUSTUS-CGP</h3>
258 <a href="javascript:onoff('ex3')" class="dlink"><span id="ex3" title="ex3d" class="dcross">[+]</span>
259 <span class="dtitle">Prerequisites</span></a> <br>
260 <div id="ex3d" class="details" style="display:none;">
261 <ul>
262 <li>Exercise 1.1-2 (may be skipped by copying the folder <a href="results/mafs/"><tt>mafs/</tt></a> from the results into the data directory)</li>
263 <li>Exercise 2.1 (may be skipped by copying the file <a href="results/vertebrates.db"><tt>vertebrates.db</tt></a> from the results into the data directory)</li>
264 </ul>
265 </div>
266 <ol>
267 <li><a href="rnaseq.html#rnaseq2hints"><span class="assignment">Generate hints from RNA-Seq data</span></a>
268 <li><a href="rnaseq.html#loadRNASeq"><span class="assignment">Load RNA-Seq hints into the database</span></a>
269 <li><a href="rnaseq.html#extrinsic"><span class="assignment">Prepare an extrinsic config file</span></a>
270 <li><a href="rnaseq.html#runAug"><span class="assignment">Run AUGUSTUS-CGP with RNA-Seq hints</span></a>
271 <li><a href="de_novo.html#merge"><span class="assignment">Merge gene predictions from parallel runs</span></a>
272 <li><a href="rnaseq.html#makeBeds"><span class="assignment"> Upload gene predictions into the assembly hub</span></a>
273
274 </ol>
275
276 <h3>Exercise 4: Transferring annotations with AUGUSTUS-CGP</h3>
277 <a href="javascript:onoff('ex4')" class="dlink"><span id="ex4" title="ex4d" class="dcross">[+]</span>
278 <span class="dtitle">Prerequisites</span></a> <br>
279 <div id="ex4d" class="details" style="display:none;">
280 <ul>
281 <li>Exercise 1.1-2 (may be skipped by copying the folder <a href="results/mafs/"><tt>mafs/</tt></a> from the results into the data directory)</li>
282 <li>Exercise 2.1 (may be skipped by copying the file <a href="results/vertebrates.db"><tt>vertebrates.db</tt></a> from the results into the data directory)</li>
283 </ul>
284 </div>
285 <ol>
286 <li><a href="liftover.html#refseq2hints"><span class="assignment">Generate 'CDS' and 'intron' hints from annotations</span></a>
287 <li><a href="liftover.html#loadAnno"><span class="assignment">Load annotation hints into the database</span></a>
288 <li><a href="liftover.html#extrinsic"><span class="assignment">Prepare an extrinsic config file</span></a>
289 <li><a href="liftover.html#runAug"><span class="assignment">Run AUGUSTUS-CGP with annotation hints</span></a>
290 <li><a href="de_novo.html#merge"><span class="assignment">Merge gene predictions from parallel runs</span></a>
291 <li><a href="liftover.html#makeBeds"><span class="assignment"> Upload gene predictions into the assembly hub</span></a>
292 </ol>
293
294 <h3>Exercise 5: Combining Annotation transfer and RNA-Seq-based prediction</h3>
295 <a href="javascript:onoff('ex5')" class="dlink"><span id="ex5" title="ex5d" class="dcross">[+]</span>
296 <span class="dtitle">Prerequisites</span></a> <br>
297 <div id="ex5d" class="details" style="display:none;">
298 <ul>
299 <li>Exercise 1.1-2 (may be skipped by copying the folder <a href="results/mafs/"><tt>mafs/</tt></a> from the results into the data directory)</li>
300 <li>Exercise 1-3.1 (may be skipped by copying the file <a href="results/vertebrates_rnaseq.db"><tt>vertebrates_rnaseq.db</tt></a> from the results into the data directory)</li>
301 <li>Exercise 4.1 (may be skipped by copying the file <a href="results/refseq/refseq.hg38.gff"><tt>refseq/refseq.hg38.gff</tt></a> from the results into the data directory)</li>
302 </ul>
303 </div>
304 <ol>
305 <li><a href="rnaseq+liftover.html#loadAnno"><span class="assignment">Create a database with RNA-Seq and annotation hints</span></a>
306 <li><a href="rnaseq+liftover.html#extrinsic"><span class="assignment">Prepare an extrinsic config file</span></a>
307 <li><a href="rnaseq+liftover.html#runAug"><span class="assignment">Run AUGUSTUS with RNA-Seq and annotation hints</span></a>
308 <li><a href="de_novo.html#merge"><span class="assignment">Merge gene predictions from parallel runs</span></a>
309 <li><a href="rnaseq+liftover.html#makeBeds"><span class="assignment"> Upload gene predictions into the assembly hub</span></a>
310 </ol>
311
312 <h3>Exercise 6: Cross-species comparison of gene sets</h3>
313 For demonstration purposes, we use the output gene sets from Exercise 5.
314 But you may as well use any other gene set from exercise 2, 3 or 4.<br><br>
315 <a href="javascript:onoff('ex6')" class="dlink"><span id="ex6" title="ex6d" class="dcross">[+]</span>
316 <span class="dtitle">Prerequisites</span></a> <br>
317 <div id="ex6d" class="details" style="display:none;">
318 <ul>
319 <li>Exercise 1.1 (may be skipped by copying the file <a href="results/vertebrates.hal"><tt>vertebrates.hal</tt></a> from the results into the data directory)</li>
320 <li>Exercise 5 (may be skipped by copying the file <a href="results/vertebrates_rnaseq+anno.db"><tt>vertebrates_rnaseq+anno.db</tt></a> and the directory
321 <a href="results/augCGP_rnaseq+liftover/joined_pred/"><tt>rnaseq+liftover/joined_pred/</tt></a>
322 from the results into the data directory)</li>
323 </ul>
324 </div>
325 <ol>
326 <li><a href="hgm.html#runHgm"><span class="assignment">Run HomGeneMapping to map coordinates between genomes</span></a>
327 <li>Get familiar with the homGeneMapping output format by reading <a href="hgm.html#explainHgm"><span class="assignment">2. homGeneMapping output explained</span></a>
328 </ol>
329 </body></html>