fstrozzi-Gmap 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README ADDED
@@ -0,0 +1,41 @@
1
+
2
+
3
+ Author: Francesco Strozzi
4
+ Copyright: 2008 Francesco Strozzi
5
+ License: The Ruby License
6
+
7
+ This module allows the parsing of the standard output of Gmap (http://www.gene.com/share/gmap/)
8
+
9
+ Example:
10
+
11
+ Gmap::Core.open("output.gmap") do |gmap|
12
+
13
+ gmap.each_sequence do |seq|
14
+
15
+ seq.each do |result|
16
+
17
+ result.query (Query sequence name)
18
+ result.target (Target sequence name)
19
+ result.q_start (Start coordinate of the query sequence)
20
+ result.q_end (End coordinate of the query sequence)
21
+ result.start (Start coordintate of the target sequence)
22
+ result.end (End coordinate of the target sequence)
23
+ result.strand (Strand of the target sequence)
24
+ result.exons (# exons found)
25
+ result.coverage (Coverage of the query sequence)
26
+ result.perc_identity (Pecentage of identity from the alignment)
27
+ result.indels (# insertion or deletions)
28
+ result.mismatch (# mismatch)
29
+ result.aa_change (Prediction of AA changes from mismatches and indels found)
30
+ result.aln (Raw alignment between target and query sequences)
31
+
32
+ ONLY IF GENE MAPS ARE USED WITH GMAP
33
+
34
+ result.gene_start (Start coordinate of the overlapping gene)
35
+ result.gene_end (End coordinate of the overlapping gene)
36
+ result.gene_id (ID of the overlapping gene)
37
+ end
38
+
39
+ end
40
+
41
+ end
@@ -0,0 +1,129 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Gmap</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Gmap</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/gmap/core_rb.html">
59
+ lib/gmap/core.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <table>
77
+ <tr><td valign="top">Author:</td><td>Francesco Strozzi
78
+
79
+ </td></tr>
80
+ <tr><td valign="top">Email:</td><td>francesco.strozzi@gmail.com
81
+
82
+ </td></tr>
83
+ <tr><td valign="top">Copyright:</td><td>2008 Francesco Strozzi
84
+
85
+ </td></tr>
86
+ <tr><td valign="top">License:</td><td>The Ruby License
87
+
88
+ </td></tr>
89
+ </table>
90
+
91
+ </div>
92
+
93
+
94
+ </div>
95
+
96
+
97
+ </div>
98
+
99
+
100
+ <!-- if includes -->
101
+
102
+ <div id="section">
103
+
104
+ <div id="class-list">
105
+ <h3 class="section-bar">Classes and Modules</h3>
106
+
107
+ Class <a href="Gmap/Core.html" class="link">Gmap::Core</a><br />
108
+ Class <a href="Gmap/Result.html" class="link">Gmap::Result</a><br />
109
+
110
+ </div>
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <!-- if method_list -->
119
+
120
+
121
+ </div>
122
+
123
+
124
+ <div id="validator-badges">
125
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
126
+ </div>
127
+
128
+ </body>
129
+ </html>
@@ -0,0 +1,252 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Gmap::Core</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Gmap::Core</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/gmap/core_rb.html">
59
+ lib/gmap/core.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ This module allows the parsing of the standard output of <a
84
+ href="../Gmap.html">Gmap</a> (<a
85
+ href="http://www.gene.com/share/gmap">www.gene.com/share/gmap</a>/)
86
+ </p>
87
+ <p>
88
+ Example:
89
+ </p>
90
+ <pre>
91
+ Gmap::Core.open(&quot;output.gmap&quot;) do |gmap|
92
+
93
+ gmap.each_sequence do |seq|
94
+
95
+ seq.each do |result|
96
+
97
+ result.query (Query sequence name)
98
+ result.target (Target sequence name)
99
+ result.q_start (Start coordinate of the query sequence)
100
+ result.q_end (End coordinate of the query sequence)
101
+ result.start (Start coordintate of the target sequence)
102
+ result.end (End coordinate of the target sequence)
103
+ result.strand (Strand of the target sequence)
104
+ result.exons (# exons found)
105
+ result.coverage (Coverage of the query sequence)
106
+ result.perc_identity (Pecentage of identity from the alignment)
107
+ result.indels (# insertion or deletions)
108
+ result.mismatch (# mismatch)
109
+ result.aa_change (Prediction of AA changes from mismatches and indels found)
110
+ result.aln (Raw alignment between target and query sequences)
111
+
112
+ ONLY IF GENE MAPS ARE USED WITH GMAP
113
+
114
+ result.gene_start (Start coordinate of the overlapping gene)
115
+ result.gene_end (End coordinate of the overlapping gene)
116
+ result.gene_id (ID of the overlapping gene)
117
+ end
118
+
119
+ end
120
+
121
+ end
122
+ </pre>
123
+
124
+ </div>
125
+
126
+
127
+ </div>
128
+
129
+ <div id="method-list">
130
+ <h3 class="section-bar">Methods</h3>
131
+
132
+ <div class="name-list">
133
+ <a href="#M000008">close</a>&nbsp;&nbsp;
134
+ <a href="#M000009">each_sequence</a>&nbsp;&nbsp;
135
+ <a href="#M000006">new</a>&nbsp;&nbsp;
136
+ <a href="#M000007">open</a>&nbsp;&nbsp;
137
+ </div>
138
+ </div>
139
+
140
+ </div>
141
+
142
+
143
+ <!-- if includes -->
144
+
145
+ <div id="section">
146
+
147
+
148
+
149
+
150
+
151
+ <div id="attribute-list">
152
+ <h3 class="section-bar">Attributes</h3>
153
+
154
+ <div class="name-list">
155
+ <table>
156
+ <tr class="top-aligned-row context-row">
157
+ <td class="context-item-name">io</td>
158
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
159
+ <td class="context-item-desc"></td>
160
+ </tr>
161
+ </table>
162
+ </div>
163
+ </div>
164
+
165
+
166
+
167
+ <!-- if method_list -->
168
+ <div id="methods">
169
+ <h3 class="section-bar">Public Class methods</h3>
170
+
171
+ <div id="method-M000006" class="method-detail">
172
+ <a name="M000006"></a>
173
+
174
+ <div class="method-heading">
175
+ <a href="Core.src/M000006.html" target="Code" class="method-signature"
176
+ onclick="popupCode('Core.src/M000006.html');return false;">
177
+ <span class="method-name">new</span><span class="method-args">(io)</span>
178
+ </a>
179
+ </div>
180
+
181
+ <div class="method-description">
182
+ </div>
183
+ </div>
184
+
185
+ <div id="method-M000007" class="method-detail">
186
+ <a name="M000007"></a>
187
+
188
+ <div class="method-heading">
189
+ <a href="Core.src/M000007.html" target="Code" class="method-signature"
190
+ onclick="popupCode('Core.src/M000007.html');return false;">
191
+ <span class="method-name">open</span><span class="method-args">(file) {|Gmap::Core.new(f)| ...}</span>
192
+ </a>
193
+ </div>
194
+
195
+ <div class="method-description">
196
+ <p>
197
+ Open the gmap file for reading
198
+ </p>
199
+ </div>
200
+ </div>
201
+
202
+ <h3 class="section-bar">Public Instance methods</h3>
203
+
204
+ <div id="method-M000008" class="method-detail">
205
+ <a name="M000008"></a>
206
+
207
+ <div class="method-heading">
208
+ <a href="Core.src/M000008.html" target="Code" class="method-signature"
209
+ onclick="popupCode('Core.src/M000008.html');return false;">
210
+ <span class="method-name">close</span><span class="method-args">()</span>
211
+ </a>
212
+ </div>
213
+
214
+ <div class="method-description">
215
+ <p>
216
+ Close the IO stream on the <a href="../Gmap.html">Gmap</a> file
217
+ </p>
218
+ </div>
219
+ </div>
220
+
221
+ <div id="method-M000009" class="method-detail">
222
+ <a name="M000009"></a>
223
+
224
+ <div class="method-heading">
225
+ <a href="Core.src/M000009.html" target="Code" class="method-signature"
226
+ onclick="popupCode('Core.src/M000009.html');return false;">
227
+ <span class="method-name">each_sequence</span><span class="method-args">() {|all_results| ...}</span>
228
+ </a>
229
+ </div>
230
+
231
+ <div class="method-description">
232
+ <p>
233
+ Iterates on every sequence processed by <a href="../Gmap.html">Gmap</a> and
234
+ returns an array of <a href="Result.html">Gmap::Result</a> objects each of
235
+ them corresponding to a Path (result) for that sequence
236
+ </p>
237
+ </div>
238
+ </div>
239
+
240
+
241
+ </div>
242
+
243
+
244
+ </div>
245
+
246
+
247
+ <div id="validator-badges">
248
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
249
+ </div>
250
+
251
+ </body>
252
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (Gmap::Core)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gmap/core.rb, line 51</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">io</span>)
15
+ <span class="ruby-ivar">@io</span> = <span class="ruby-identifier">io</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>open (Gmap::Core)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gmap/core.rb, line 57</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>)
15
+
16
+ <span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>)
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
18
+ <span class="ruby-keyword kw">yield</span> <span class="ruby-constant">Gmap</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">f</span>)
19
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">close</span>
20
+ <span class="ruby-keyword kw">else</span>
21
+ <span class="ruby-constant">Gmap</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">f</span>)
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-keyword kw">end</span></pre>
24
+ </body>
25
+ </html>