Debian Codegraph @

docs/tutorial-cgp/hgm.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html><head><title>Predicting Genes with AUGUSTUS</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 <a href="index.html">main AugCGP tutorial</a>.
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 </font>
14 <div align="right">Show <a href="javascript:allOn()">all</a> / <a href="javascript:allOff()">no</a> details.</div>
15
16 <h1>cross-species comparison of gene sets</h1>
17 The consistency of gene sets within a clade is very important, in particular, when
18 studying the genomic differences.<br>
19 We developed the tool 'homGeneMapping' for evaluation of consistency
20 of gene sets across species. HomGeneMapping uses a whole-genome alignment of the species to map
21 coordinates between genomes. Furthermore, accuracy can be measured by incorporating evidence from RNA-Seq and evaluating how well a gene structure agrees with the supporting RNA-Seq data.
22
23 <h2 id="runHgm">1. Run HomGeneMapping to map coordinates between genomes</h2>
24
25 <span class="assignment">Prepare</span> a text file with a list of genome names and locations of
26 the corresponding input gene files in GTF format.<br><br>
27
28 <a href="javascript:onoff('cft')" class="dlink"><span id="cft" title="cftd" class="dcross">[+]</span>
29 <span class="dtitle">file format...</span></a> <br>
30 <div id="cftd" class="details" style="display:none;">
31 <pre class="code">
32 name_of_genome_1 path/to/genefile/of/genome_1
33 name_of_genome_2 path/to/genefile/of/genome_2
34 ...
35 name_of_genome_N path/to/genefile/of/genome_N
36 </pre>
37 The name of genomes must be the same as the ones used in the HAL alignment.
38 </div>
39 </br>
40
41 <pre class="code">
42 for f in $PWD/augCGP_rnaseq+liftover/joined_pred/*.gff; do echo -ne "$(basename $f .gff)\t$f\n"; done &gtgtfs.tbl
43 </pre>
44
45 The file <span class="result"><tt>gtfs.tbl</tt></span> will now look like this (except for the parent directory)<br>
46 <pre class="code">
47 bosTau8 /var/www/augustus/htdocs/binaries/tutorial-cgp/data/augCGP_rnaseq+liftover/joined_pred/bosTau8.gff
48 canFam3 /var/www/augustus/htdocs/binaries/tutorial-cgp/data/augCGP_rnaseq+liftover/joined_pred/canFam3.gff
49 galGal4 /var/www/augustus/htdocs/binaries/tutorial-cgp/data/augCGP_rnaseq+liftover/joined_pred/galGal4.gff
50 hg38 /var/www/augustus/htdocs/binaries/tutorial-cgp/data/augCGP_rnaseq+liftover/joined_pred/hg38.gff
51 mm10 /var/www/augustus/htdocs/binaries/tutorial-cgp/data/augCGP_rnaseq+liftover/joined_pred/mm10.gff
52 monDom5 /var/www/augustus/htdocs/binaries/tutorial-cgp/data/augCGP_rnaseq+liftover/joined_pred/monDom5.gff
53 rheMac3 /var/www/augustus/htdocs/binaries/tutorial-cgp/data/augCGP_rnaseq+liftover/joined_pred/rheMac3.gff
54 rn6 /var/www/augustus/htdocs/binaries/tutorial-cgp/data/augCGP_rnaseq+liftover/joined_pred/rn6.gff
55 </pre>
56
57 <span class="assignment">Run</span> <tt>homGeneMapping</tt> as follows
58 <pre class="code">
59 homGeneMapping --halfile=vertebrates.hal --gtfs=gtfs.tbl --cpus=8 --outdir=hgm --dbaccess=vertebrates_rnaseq+anno.db --details
60 </pre>
61 When a database is passed with the parameter <tt>--dbaccess</tt>, 'CDS' and 'intron' hints are imported from the database and
62 information is printed which and how many of a transcript's CDS exons and introns have hints support.
63
64 <h2 id="explainHgm">2. homGeneMapping output explained</h2>
65
66 The folder <span class="result"><tt>hgm/</tt></span>. contains one gtf file for each of the input gtf files.
67 <pre class="code">
68 -rw-r--r-- 1 stefanie bioinf 55K Sep 21 12:27 bosTau8.gtf
69 -rw-r--r-- 1 stefanie bioinf 55K Sep 21 12:27 canFam3.gtf
70 -rw-r--r-- 1 stefanie bioinf 42K Sep 21 12:27 galGal4.gtf
71 -rw-r--r-- 1 stefanie bioinf 63K Sep 21 12:27 hg38.gtf
72 -rw-r--r-- 1 stefanie bioinf 51K Sep 21 12:27 mm10.gtf
73 -rw-r--r-- 1 stefanie bioinf 54K Sep 21 12:27 monDom5.gtf
74 -rw-r--r-- 1 stefanie bioinf 54K Sep 21 12:27 rheMac3.gtf
75 -rw-r--r-- 1 stefanie bioinf 22K Sep 21 12:27 rn6.gtf
76 </pre>
77 Each of the files starts with a header
78 <pre class="code">
79 # 0 bosTau8
80 # 1 canFam3
81 # 2 galGal4
82 # 3 hg38
83 # 4 mm10
84 # 5 monDom5
85 # 6 rheMac3
86 # 7 rn6
87 ###
88 </pre>
89 that assigns each genome name to a unique identification number that is used as a shortcut. The header is followed by a list of transcripts.
90 The output for each transcript T can be split into three sections<br><br>
91 <a href="javascript:onoff('gtf')" class="dlink"><span id="gtf" title="gtfd" class="dcross">[1]</span>
92 <span class="dtitle">extended gtf format...</span></a> <br>
93 <div id="gtfd" class="details" style="display:none;">
94 <pre class="code" style="font-size:16px;">
95 chr16 AUGUSTUS transcript 93718 96048 . + . jg6.t1
96 chr16 AUGUSTUS CDS 93718 93790 1.0 + 0 transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3M-1,5";
97 chr16 AUGUSTUS exon 93718 93790 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3,5";
98 chr16 AUGUSTUS start_codon 93718 93720 0.0 + . transcript_id "jg6.t1"; gene_id "jg6";
99 chr16 AUGUSTUS intron 93791 94782 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3E:M-6,5";
100 chr16 AUGUSTUS CDS 94783 94962 1.0 + 2 transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3M-1,0,1,2,5,6";
101 chr16 AUGUSTUS exon 94783 94962 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3,0,1,2,5,6";
102 chr16 AUGUSTUS intron 94963 95061 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3E:M-6,0,1,2E-2335,5,6E-53";
103 chr16 AUGUSTUS CDS 95062 95145 1.0 + 2 transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3M-1,0,2,5,6";
104 chr16 AUGUSTUS exon 95062 95145 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3,0,2,5,6";
105 chr16 AUGUSTUS intron 95146 95333 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3E:M-29,0,2E-1908,5,6E-65";
106 chr16 AUGUSTUS CDS 95334 95410 1.0 + 2 transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3M-1,0,1,2,5,6";
107 chr16 AUGUSTUS exon 95334 95410 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3,0,1,2,5,6";
108 chr16 AUGUSTUS intron 95411 95503 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3E:M-28,0,1,2E-1877,5,6E*-108";
109 chr16 AUGUSTUS CDS 95504 95567 1.0 + 0 transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3M-1,0,1,2,5";
110 chr16 AUGUSTUS exon 95504 95567 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3,0,1,2,5";
111 chr16 AUGUSTUS intron 95568 95651 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3E:M-18,0,1,2E-1823,5";
112 chr16 AUGUSTUS exon 95652 96048 0.0 + . transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3";
113 chr16 AUGUSTUS CDS 95652 95851 1.0 + 2 transcript_id "jg6.t1"; gene_id "jg6"; hgm_info "3M-1,0,1,2,5";
114 chr16 AUGUSTUS stop_codon 95849 95851 0.0 + . transcript_id "jg6.t1"; gene_id "jg6";
115 </pre>
116 In the extended gtf format CDS, exon and intron features of T have an additional attribute 'hgm_info' in the last column that encodes a comma-separated list of
117 tuples of genome name, sources of evidence and multiplicity, e.g the tuple
118 <pre class="code">
119 2E-1908
120 </pre>
121 encodes genome_name=galGal4 (see header), source=E and mult=1908.
122 The 'hgm_info' string of the second intron
123 <pre class="code">
124 hgm_info "3E:M-6,0,1,2E-2335,5,6E-53";
125 </pre>
126 states that the introns is consistent with an intron in the gene sets of species 3 (=hg38), 0 (=bosTau8), 1 (=canFam3), 2 (=galGal4), 5 (=monDom5) and 6 (=rheMac3).
127 An intron/exon of species A is considered consistent with an intron/exon of species B, if both boundaries are aligned. CDS exons must
128 additionally be in the same reading frame to be consistent with one another.
129 In species 3,2 and 6 the intron is supported by RNA-Seq splice junctions (source E) with multiplicities 6, 2335 and 53, respectively.
130 Furthermore, there is even evidence from an existing annotation in species 3 (source M) for the intron.
131 If a source is followed by '*', the gene feature is not present in that particular species, although there is evidence for it, e.g.
132 <pre class="code">
133 hgm_info "...,6E*-108";
134 </pre>
135 means that the gene feature is not present in the gene set of species 6, but has RNA-Seq support - a sign for a false negative in species 6, in particular if
136 the gene feature is present and has strong evidence in many of the other species.
137 </div>
138
139 <a href="javascript:onoff('gli')" class="dlink"><span id="gli" title="glid" class="dcross">[2]</span>
140 <span class="dtitle">info on gene feature level...</span></a> <br>
141 <div id="glid" class="details" style="display:none;">
142 <pre class="code">
143 # gene feature level:
144 #
145 #
146 # number/% of features with exact homologs in at least k other genomes:
147 #
148 #---------------------------------------------------------------------------------------------------
149 # k CDS Intr Exon Intr+Exon
150 #---------------------------------------------------------------------------------------------------
151 #
152 # 0 6 100.0% 5 100.0% 6 100.0% 11 100.0% *************************
153 # 1 6 100.0% 5 100.0% 5 83.3% 10 90.9% **********************
154 # 2 5 83.3% 4 80.0% 4 66.7% 8 72.7% ******************
155 # 3 5 83.3% 4 80.0% 4 66.7% 8 72.7% ******************
156 # 4 5 83.3% 4 80.0% 4 66.7% 8 72.7% ******************
157 # 5 2 33.3% 1 20.0% 2 33.3% 3 27.3% ******
158 # 6 0 0.0% 0 0.0% 0 0.0% 0 0.0%
159 # 7 0 0.0% 0 0.0% 0 0.0% 0 0.0%
160 #
161 # number/% of features supported by extrinsic evidence in at least k genomes :
162 #
163 #---------------------------------------------------------------------------------------------------
164 # k CDS Intr Exon Intr+Exon
165 #---------------------------------------------------------------------------------------------------
166 #
167 # 0 6 100.0% 5 100.0% 6 100.0% 11 100.0% *************************
168 # 1 6 100.0% 5 100.0% 0 0.0% 5 45.5% ***********
169 # 2 0 0.0% 4 80.0% 0 0.0% 4 36.4% *********
170 # 3 0 0.0% 3 60.0% 0 0.0% 3 27.3% ******
171 # 4 0 0.0% 0 0.0% 0 0.0% 0 0.0%
172 # 5 0 0.0% 0 0.0% 0 0.0% 0 0.0%
173 # 6 0 0.0% 0 0.0% 0 0.0% 0 0.0%
174 # 7 0 0.0% 0 0.0% 0 0.0% 0 0.0%
175 # 8 0 0.0% 0 0.0% 0 0.0% 0 0.0%
176 </pre>
177 The gene feature level displays the cumulative sum of percentages of CDS/intron/exon features of the transcript T, that are
178 <ul>
179 <li>consistent with CDS/intron/exon features in k other genomes (first table)</li>
180 <li>are supported by hints in at least k genomes (second table)</li>
181 </ul>
182 Let's have a closer look at the first table. For k=3
183 <pre class="code">
184 #---------------------------------------------------------------------------------------------------
185 # k CDS Intr Exon Intr+Exon
186 #---------------------------------------------------------------------------------------------------
187 #
188 # 0 6 100.0% 5 100.0% 6 100.0% 11 100.0% *************************
189 # 1 6 100.0% 5 100.0% 5 83.3% 10 90.9% **********************
190 # 2 5 83.3% 4 80.0% 4 66.7% 8 72.7% ******************
191 <span style="background-color: #FFFF00"># 3 5 83.3% 4 80.0% 4 66.7% 8 72.7% ******************</span>
192 # 4 5 83.3% 4 80.0% 4 66.7% 8 72.7% ******************
193 # 5 2 33.3% 1 20.0% 2 33.3% 3 27.3% ******
194 # 6 0 0.0% 0 0.0% 0 0.0% 0 0.0%
195 # 7 0 0.0% 0 0.0% 0 0.0% 0 0.0%
196 </pre>
197 we can see that
198 <ul>
199 <li>5 out of the 6 CDS exons (83.3%) are consistent with a CDS exon</li>
200 <li>4 out of the 5 introns (80.0%) are consistent with an intron</li>
201 <li>4 out of the 6 exons (66.7%) are consistent with an exon</li>
202 </ul>
203 in at least k=3 of the other gene sets.
204 For k=1, the second table shows that
205 <pre class="code">
206 #---------------------------------------------------------------------------------------------------
207 # k CDS Intr Exon Intr+Exon
208 #---------------------------------------------------------------------------------------------------
209 #
210 # 0 6 100.0% 5 100.0% 6 100.0% 11 100.0% *************************
211 <span style="background-color: #FFFF00"># 1 6 100.0% 5 100.0% 0 0.0% 5 45.5% ***********</span>
212 # 2 0 0.0% 4 80.0% 0 0.0% 4 36.4% *********
213 # 3 0 0.0% 3 60.0% 0 0.0% 3 27.3% ******
214 # 4 0 0.0% 0 0.0% 0 0.0% 0 0.0%
215 # 5 0 0.0% 0 0.0% 0 0.0% 0 0.0%
216 # 6 0 0.0% 0 0.0% 0 0.0% 0 0.0%
217 # 7 0 0.0% 0 0.0% 0 0.0% 0 0.0%
218 # 8 0 0.0% 0 0.0% 0 0.0% 0 0.0%
219 </pre>
220 <ul>
221 <li>6 out of the 6 CDS exons (100.0%)</li>
222 <li>5 out of the 5 introns (100.0%)</li>
223 </ul>
224 are supported by evidence (any source) in at least k=1 of the gene sets.
225 Note that the database contains no 'exon' hints. Thus, none of the exon features have support.
226 </div>
227
228 <a href="javascript:onoff('tli')" class="dlink"><span id="tli" title="tlid" class="dcross">[3]</span>
229 <span class="dtitle">info on transcript level...</span></a> <br>
230 <div id="tlid" class="details" style="display:none;">
231 <pre class="code">
232 # transcript level:
233 #
234 # 0 gene_id=jg4 tx_id=jg4.t1 5/6 CDS 4/5 Intr 4/6 exon
235 # 1 gene_id=jg7 tx_id=jg7.t1 4/6 CDS 3/5 Intr 3/6 exon
236 # 2 gene_id=jg5 tx_id=jg5.t1 5/6 CDS 4/5 Intr 4/6 exon
237 # 5 gene_id=jg4 tx_id=jg4.t1 6/6 CDS 5/5 Intr 5/6 exon
238 # 6 gene_id=jg5 tx_id=jg5.t1 3/5 CDS 2/4 Intr 3/5 exon
239 #
240 # transcript has an exact homolog in 0 other genomes.
241 </pre>
242 The transcript itemizes all transcripts in any of the other genomes that are partly consistent with transcript T.
243 For example the transcript jg7.t1 in species 1 (=canFam3) has
244 <ul>
245 <li> 4 out of 6 CDS exons</li>
246 <li> 3 out of 5 introns</li>
247 <li> 3 out of 6 exons</li>
248 </ul>
249 that are consistent with T. A transcript is only considered an 'exact homolog' of T, if all its exons
250 are consistent with T and it has the same number of exons as T.
251 </div><br>
252 sections 2 and 3 are only printed if the <tt>--details</tt> option is turned on.
253 </body></html>