parse_fasta 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b296fad1f7f3a0758bfa9e3839eacfda5263d878
4
- data.tar.gz: 4dffe3d99bf98969205b1a10fc5650b701676e67
3
+ metadata.gz: 81e3eddaba7422d44ae3235f5c9a997f9fc9ea96
4
+ data.tar.gz: 9fce00b1a06d89911ded694f3727eaca9dbda59e
5
5
  SHA512:
6
- metadata.gz: 127538aa68f31e3e237b2a6625a3f66c7628bf19beaaff3a1bd351488f343a5f0af35fc0f64846feb62ffcac0c02c5bc9f0a05761a061c501c1e50e6dcaa27dc
7
- data.tar.gz: aaa836672419f8ab54bf66e6ea5695599f7bc19f6a1d126b151c6865182d3cf4fc1023a68f833cee79d8c9a7c9180c5a0044656003a293868d4d248b43decadb
6
+ metadata.gz: ce14854b609f406cbafba53f6e523e17ab9e7406d0073e303f1b6d634e6e8e213baf0f2f648d57159af48dcc7b1859bcac426a9b081eb7e069cc5ace43fe5030
7
+ data.tar.gz: d1bf3eb669efe8d5747315315b1cbb7370d70ed0614e64ea44beb9fd08990554e4609364ce623a54e896e74becd222c124da92ff5a716acfccc55b9887f5cf24
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  Gemfile.lock
7
7
  InstalledFiles
8
8
  _yardoc
9
+ doc/
9
10
  coverage
10
11
  lib/bundler/man
11
12
  pkg
@@ -17,5 +17,5 @@
17
17
  # along with parse_fasta. If not, see <http://www.gnu.org/licenses/>.
18
18
 
19
19
  module ParseFasta
20
- VERSION = "1.0.0"
20
+ VERSION = "1.0.1"
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse_fasta
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Moore
@@ -92,24 +92,6 @@ files:
92
92
  - Gemfile
93
93
  - README.md
94
94
  - Rakefile
95
- - doc/FastaFile.html
96
- - doc/File.html
97
- - doc/ParseFasta.html
98
- - doc/Sequence.html
99
- - doc/_index.html
100
- - doc/class_list.html
101
- - doc/css/common.css
102
- - doc/css/full_list.css
103
- - doc/css/style.css
104
- - doc/file.README.html
105
- - doc/file_list.html
106
- - doc/frames.html
107
- - doc/index.html
108
- - doc/js/app.js
109
- - doc/js/full_list.js
110
- - doc/js/jquery.js
111
- - doc/method_list.html
112
- - doc/top-level-namespace.html
113
95
  - lib/parse_fasta.rb
114
96
  - lib/parse_fasta/fasta_file.rb
115
97
  - lib/parse_fasta/sequence.rb
data/doc/FastaFile.html DELETED
@@ -1,292 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: FastaFile
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '';
20
- framesUrl = "frames.html#!FastaFile.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="_index.html">Index (F)</a> &raquo;
35
-
36
-
37
- <span class="title">FastaFile</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: FastaFile
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">File</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">File</li>
82
-
83
- <li class="next">FastaFile</li>
84
-
85
- </ul>
86
- <a href="#" class="inheritanceTree">show all</a>
87
-
88
- </dd>
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <dt class="r2 last">Defined in:</dt>
99
- <dd class="r2 last">lib/parse_fasta/fasta_file.rb</dd>
100
-
101
- </dl>
102
- <div class="clear"></div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>Provides simple interface for parsing fasta format files.</p>
108
-
109
-
110
- </div>
111
- </div>
112
- <div class="tags">
113
-
114
-
115
- </div>
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- <h2>
124
- Instance Method Summary
125
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
126
- </h2>
127
-
128
- <ul class="summary">
129
-
130
- <li class="public ">
131
- <span class="summary_signature">
132
-
133
- <a href="#each_record-instance_method" title="#each_record (instance method)">- (Object) <strong>each_record</strong> {|header, sequence| ... }</a>
134
-
135
-
136
-
137
- </span>
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <span class="summary_desc"><div class='inline'>
148
- <p>Analagous to File#each_line, #each_record is used to go through a fasta
149
- file record by record.</p>
150
- </div></span>
151
-
152
- </li>
153
-
154
-
155
- </ul>
156
-
157
-
158
-
159
-
160
-
161
- <div id="instance_method_details" class="method_details_list">
162
- <h2>Instance Method Details</h2>
163
-
164
-
165
- <div class="method_details first">
166
- <h3 class="signature first" id="each_record-instance_method">
167
-
168
- - (<tt>Object</tt>) <strong>each_record</strong> {|header, sequence| ... }
169
-
170
-
171
-
172
-
173
-
174
- </h3><div class="docstring">
175
- <div class="discussion">
176
-
177
- <p>Analagous to File#each_line, #each_record is used to go through a fasta
178
- file record by record.</p>
179
-
180
-
181
- </div>
182
- </div>
183
- <div class="tags">
184
-
185
- <div class="examples">
186
- <p class="tag_title">Examples:</p>
187
-
188
-
189
- <p class="example_title"><div class='inline'>
190
- <p>Parsing a fasta file</p>
191
- </div></p>
192
-
193
- <pre class="example code"><code><span class='const'>FastaFile</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>reads.fna</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>r</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each_record'>each_record</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_header'>header</span><span class='comma'>,</span> <span class='id identifier rubyid_sequence'>sequence</span><span class='op'>|</span>
194
- <span class='id identifier rubyid_puts'>puts</span> <span class='lbracket'>[</span><span class='id identifier rubyid_header'>header</span><span class='comma'>,</span> <span class='id identifier rubyid_sequence'>sequence</span><span class='period'>.</span><span class='id identifier rubyid_gc'>gc</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\t</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
195
- <span class='kw'>end</span></code></pre>
196
-
197
- </div>
198
-
199
- <p class="tag_title">Yields:</p>
200
- <ul class="yield">
201
-
202
- <li>
203
-
204
-
205
- <span class='type'></span>
206
-
207
-
208
-
209
-
210
- <div class='inline'>
211
- <p>The header and sequence for each record in the fasta file to the block</p>
212
- </div>
213
-
214
- </li>
215
-
216
- </ul>
217
- <p class="tag_title">Yield Parameters:</p>
218
- <ul class="yieldparam">
219
-
220
- <li>
221
-
222
- <span class='name'>header</span>
223
-
224
-
225
- <span class='type'>(<tt>String</tt>)</span>
226
-
227
-
228
-
229
- &mdash;
230
- <div class='inline'>
231
- <p>The header of the fasta record without the leading &#39;&gt;&#39;</p>
232
- </div>
233
-
234
- </li>
235
-
236
- <li>
237
-
238
- <span class='name'>sequence</span>
239
-
240
-
241
- <span class='type'>(<tt><span class='object_link'><a href="Sequence.html" title="Sequence (class)">Sequence</a></span></tt>)</span>
242
-
243
-
244
-
245
- &mdash;
246
- <div class='inline'>
247
- <p>The sequence of the fasta record</p>
248
- </div>
249
-
250
- </li>
251
-
252
- </ul>
253
-
254
- </div><table class="source_code">
255
- <tr>
256
- <td>
257
- <pre class="lines">
258
-
259
-
260
- 35
261
- 36
262
- 37
263
- 38
264
- 39
265
- 40</pre>
266
- </td>
267
- <td>
268
- <pre class="code"><span class="info file"># File 'lib/parse_fasta/fasta_file.rb', line 35</span>
269
-
270
- <span class='kw'>def</span> <span class='id identifier rubyid_each_record'>each_record</span>
271
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n&gt;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
272
- <span class='id identifier rubyid_header'>header</span><span class='comma'>,</span> <span class='id identifier rubyid_sequence'>sequence</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_line'>parse_line</span><span class='lparen'>(</span><span class='id identifier rubyid_line'>line</span><span class='rparen'>)</span>
273
- <span class='kw'>yield</span><span class='lparen'>(</span><span class='id identifier rubyid_header'>header</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='comma'>,</span> <span class='const'>Sequence</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_sequence'>sequence</span><span class='rparen'>)</span><span class='rparen'>)</span>
274
- <span class='kw'>end</span>
275
- <span class='kw'>end</span></pre>
276
- </td>
277
- </tr>
278
- </table>
279
- </div>
280
-
281
- </div>
282
-
283
- </div>
284
-
285
- <div id="footer">
286
- Generated on Tue Jun 3 22:55:41 2014 by
287
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
288
- 0.8.7.4 (ruby-2.1.1).
289
- </div>
290
-
291
- </body>
292
- </html>
data/doc/File.html DELETED
@@ -1,212 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: File
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '';
20
- framesUrl = "frames.html#!File.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="_index.html">Index (F)</a> &raquo;
35
-
36
-
37
- <span class="title">File</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: File
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Object</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">File</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/parse_fasta/file.rb</dd>
98
-
99
- </dl>
100
- <div class="clear"></div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
- <p>You should have received a copy of the GNU General Public License along
106
- with parse_fasta. If not, see &lt;<a
107
- href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/&gt;.</p>
108
-
109
-
110
- </div>
111
- </div>
112
- <div class="tags">
113
-
114
-
115
- </div><div id="subclasses">
116
- <h2>Direct Known Subclasses</h2>
117
- <p class="children"><span class='object_link'><a href="FastaFile.html" title="FastaFile (class)">FastaFile</a></span></p>
118
- </div>
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- <h2>
128
- Instance Method Summary
129
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
130
- </h2>
131
-
132
- <ul class="summary">
133
-
134
- <li class="public ">
135
- <span class="summary_signature">
136
-
137
- <a href="#each_record-instance_method" title="#each_record (instance method)">- (Object) <strong>each_record</strong> </a>
138
-
139
-
140
-
141
- </span>
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
- <span class="summary_desc"><div class='inline'></div></span>
152
-
153
- </li>
154
-
155
-
156
- </ul>
157
-
158
-
159
-
160
-
161
- <div id="instance_method_details" class="method_details_list">
162
- <h2>Instance Method Details</h2>
163
-
164
-
165
- <div class="method_details first">
166
- <h3 class="signature first" id="each_record-instance_method">
167
-
168
- - (<tt>Object</tt>) <strong>each_record</strong>
169
-
170
-
171
-
172
-
173
-
174
- </h3><table class="source_code">
175
- <tr>
176
- <td>
177
- <pre class="lines">
178
-
179
-
180
- 20
181
- 21
182
- 22
183
- 23
184
- 24
185
- 25</pre>
186
- </td>
187
- <td>
188
- <pre class="code"><span class="info file"># File 'lib/parse_fasta/file.rb', line 20</span>
189
-
190
- <span class='kw'>def</span> <span class='id identifier rubyid_each_record'>each_record</span>
191
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n&gt;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
192
- <span class='id identifier rubyid_header'>header</span><span class='comma'>,</span> <span class='id identifier rubyid_sequence'>sequence</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_line'>parse_line</span><span class='lparen'>(</span><span class='id identifier rubyid_line'>line</span><span class='rparen'>)</span>
193
- <span class='kw'>yield</span> <span class='id identifier rubyid_header'>header</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='comma'>,</span> <span class='id identifier rubyid_sequence'>sequence</span>
194
- <span class='kw'>end</span>
195
- <span class='kw'>end</span></pre>
196
- </td>
197
- </tr>
198
- </table>
199
- </div>
200
-
201
- </div>
202
-
203
- </div>
204
-
205
- <div id="footer">
206
- Generated on Tue Jun 3 22:41:14 2014 by
207
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
208
- 0.8.7.4 (ruby-2.1.1).
209
- </div>
210
-
211
- </body>
212
- </html>