bio-ngs 0.4.6.alpha.01 → 0.4.6.alpha.02

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/Gemfile +4 -2
  2. data/Gemfile.lock +21 -21
  3. data/README.rdoc +51 -4
  4. data/VERSION +1 -1
  5. data/bin/biongs +1 -0
  6. data/bio-ngs.gemspec +36 -8
  7. data/features/cufflinks_gtf_parser.feature +22 -0
  8. data/features/cufflinks_gtf_parser_indexing.feature +20 -0
  9. data/features/step_definitions/cufflinks_gtf.rb +30 -0
  10. data/features/step_definitions/cufflinks_gtf_parser_indexing.rb +53 -0
  11. data/features/support/env.rb +2 -0
  12. data/lib/bio-ngs.rb +19 -5
  13. data/lib/bio/appl/ngs/cufflinks.rb +447 -281
  14. data/lib/bio/appl/ngs/cufflinks/gtf/gtf.rb +23 -0
  15. data/lib/bio/appl/ngs/cufflinks/gtf/gtf_parser.rb +248 -0
  16. data/lib/bio/appl/ngs/cufflinks/gtf/transcript.rb +154 -0
  17. data/lib/bio/ngs/fs.rb +46 -0
  18. data/lib/bio/ngs/illumina/fastq.rb +176 -0
  19. data/lib/bio/ngs/illumina/illumina.rb +64 -0
  20. data/lib/bio/ngs/illumina/project.rb +81 -0
  21. data/lib/bio/ngs/illumina/sample.rb +85 -0
  22. data/lib/bio/ngs/task.rb +1 -1
  23. data/lib/bio/ngs/utils.rb +124 -112
  24. data/lib/meta.rb +162 -0
  25. data/lib/tasks/convert.thor +14 -14
  26. data/lib/tasks/filter.thor +158 -23
  27. data/lib/tasks/quality.thor +24 -4
  28. data/lib/tasks/rna.thor +26 -0
  29. data/lib/wrapper.rb +28 -0
  30. data/spec/bio/ngs/fs_spec.rb +70 -0
  31. data/spec/bio/ngs/illumina/fastq_spec.rb +52 -0
  32. data/spec/bio/ngs/illumina/illumina_spec.rb +21 -0
  33. data/spec/bio/ngs/illumina/project_spec.rb +0 -0
  34. data/spec/bio/ngs/illumina/sample_spec.rb +0 -0
  35. data/spec/bio/ngs/illumina/samples_spec.rb +0 -0
  36. data/spec/filter_spec.rb +25 -0
  37. data/spec/fixture/table_filter_list.txt +3 -0
  38. data/spec/fixture/table_filter_list_first_column.txt +2 -0
  39. data/spec/fixture/table_filter_source.tsv +44 -0
  40. data/spec/fixture/test-filtered-reference.fastq.gz +0 -0
  41. data/spec/fixture/test-merged-reference.fastq.gz +0 -0
  42. data/spec/fixture/test.fastq.gz +0 -0
  43. data/spec/meta_spec.rb +117 -0
  44. data/spec/spec_helper.rb +1 -1
  45. metadata +97 -69
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-ngs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6.alpha.01
4
+ version: 0.4.6.alpha.02
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-21 00:00:00.000000000 Z
13
+ date: 2012-05-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bio
17
- requirement: &2166120140 !ruby/object:Gem::Requirement
17
+ requirement: &2153665000 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.4.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2166120140
25
+ version_requirements: *2153665000
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bio-samtools
28
- requirement: &2166117920 !ruby/object:Gem::Requirement
28
+ requirement: &2153664500 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,21 +33,21 @@ dependencies:
33
33
  version: 0.3.2
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2166117920
36
+ version_requirements: *2153664500
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: thor
39
- requirement: &2166248820 !ruby/object:Gem::Requirement
39
+ requirement: &2153795800 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
- - - ! '>='
42
+ - - =
43
43
  - !ruby/object:Gem::Version
44
44
  version: 0.14.6
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2166248820
47
+ version_requirements: *2153795800
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rubyvis
50
- requirement: &2166247760 !ruby/object:Gem::Requirement
50
+ requirement: &2153795320 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 0.5.0
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2166247760
58
+ version_requirements: *2153795320
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: daemons
61
- requirement: &2166246800 !ruby/object:Gem::Requirement
61
+ requirement: &2153794840 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 1.1.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2166246800
69
+ version_requirements: *2153794840
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: ruby-ensembl-api
72
- requirement: &2166245540 !ruby/object:Gem::Requirement
72
+ requirement: &2153794300 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 1.0.1
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *2166245540
80
+ version_requirements: *2153794300
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: activerecord
83
- requirement: &2166244540 !ruby/object:Gem::Requirement
83
+ requirement: &2153793160 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: 3.0.5
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *2166244540
91
+ version_requirements: *2153793160
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: sqlite3
94
- requirement: &2166243560 !ruby/object:Gem::Requirement
94
+ requirement: &2153791580 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: 1.3.3
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *2166243560
102
+ version_requirements: *2153791580
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: bio-blastxmlparser
105
- requirement: &2166242560 !ruby/object:Gem::Requirement
105
+ requirement: &2153790980 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :runtime
112
112
  prerelease: false
113
- version_requirements: *2166242560
113
+ version_requirements: *2153790980
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: progressbar
116
- requirement: &2166241680 !ruby/object:Gem::Requirement
116
+ requirement: &2153790500 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 0.9.0
122
122
  type: :runtime
123
123
  prerelease: false
124
- version_requirements: *2166241680
124
+ version_requirements: *2153790500
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake
127
- requirement: &2166257200 !ruby/object:Gem::Requirement
127
+ requirement: &2153789980 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - =
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 0.9.2.2
133
133
  type: :runtime
134
134
  prerelease: false
135
- version_requirements: *2166257200
135
+ version_requirements: *2153789980
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: json
138
- requirement: &2166255420 !ruby/object:Gem::Requirement
138
+ requirement: &2153789440 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: '0'
144
144
  type: :runtime
145
145
  prerelease: false
146
- version_requirements: *2166255420
146
+ version_requirements: *2153789440
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: parallel
149
- requirement: &2166252880 !ruby/object:Gem::Requirement
149
+ requirement: &2153788960 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ! '>='
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: '0'
155
155
  type: :runtime
156
156
  prerelease: false
157
- version_requirements: *2166252880
157
+ version_requirements: *2153788960
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: shoulda
160
- requirement: &2166375840 !ruby/object:Gem::Requirement
160
+ requirement: &2153788480 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ! '>='
@@ -165,10 +165,10 @@ dependencies:
165
165
  version: '0'
166
166
  type: :development
167
167
  prerelease: false
168
- version_requirements: *2166375840
168
+ version_requirements: *2153788480
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: bundler
171
- requirement: &2166373980 !ruby/object:Gem::Requirement
171
+ requirement: &2153787960 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
174
174
  - - ~>
@@ -176,10 +176,10 @@ dependencies:
176
176
  version: 1.1.0
177
177
  type: :development
178
178
  prerelease: false
179
- version_requirements: *2166373980
179
+ version_requirements: *2153787960
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: jeweler
182
- requirement: &2166373320 !ruby/object:Gem::Requirement
182
+ requirement: &2153846060 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
185
185
  - - ~>
@@ -187,10 +187,10 @@ dependencies:
187
187
  version: 1.8.3
188
188
  type: :development
189
189
  prerelease: false
190
- version_requirements: *2166373320
190
+ version_requirements: *2153846060
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: rcov
193
- requirement: &2166372800 !ruby/object:Gem::Requirement
193
+ requirement: &2153845580 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
196
  - - ~>
@@ -198,10 +198,10 @@ dependencies:
198
198
  version: 0.9.11
199
199
  type: :development
200
200
  prerelease: false
201
- version_requirements: *2166372800
201
+ version_requirements: *2153845580
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: bio
204
- requirement: &2166379100 !ruby/object:Gem::Requirement
204
+ requirement: &2153844960 !ruby/object:Gem::Requirement
205
205
  none: false
206
206
  requirements:
207
207
  - - ! '>='
@@ -209,21 +209,21 @@ dependencies:
209
209
  version: 1.4.2
210
210
  type: :development
211
211
  prerelease: false
212
- version_requirements: *2166379100
212
+ version_requirements: *2153844960
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: thor
215
- requirement: &2166377460 !ruby/object:Gem::Requirement
215
+ requirement: &2153844140 !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements:
218
- - - ! '>='
218
+ - - =
219
219
  - !ruby/object:Gem::Version
220
220
  version: 0.14.6
221
221
  type: :development
222
222
  prerelease: false
223
- version_requirements: *2166377460
223
+ version_requirements: *2153844140
224
224
  - !ruby/object:Gem::Dependency
225
225
  name: ffi
226
- requirement: &2166391740 !ruby/object:Gem::Requirement
226
+ requirement: &2153843400 !ruby/object:Gem::Requirement
227
227
  none: false
228
228
  requirements:
229
229
  - - ! '>='
@@ -231,10 +231,10 @@ dependencies:
231
231
  version: 1.0.6
232
232
  type: :development
233
233
  prerelease: false
234
- version_requirements: *2166391740
234
+ version_requirements: *2153843400
235
235
  - !ruby/object:Gem::Dependency
236
236
  name: rubyvis
237
- requirement: &2166390020 !ruby/object:Gem::Requirement
237
+ requirement: &2153842920 !ruby/object:Gem::Requirement
238
238
  none: false
239
239
  requirements:
240
240
  - - ! '>='
@@ -242,10 +242,10 @@ dependencies:
242
242
  version: 0.5.0
243
243
  type: :development
244
244
  prerelease: false
245
- version_requirements: *2166390020
245
+ version_requirements: *2153842920
246
246
  - !ruby/object:Gem::Dependency
247
247
  name: rspec
248
- requirement: &2166388100 !ruby/object:Gem::Requirement
248
+ requirement: &2153842440 !ruby/object:Gem::Requirement
249
249
  none: false
250
250
  requirements:
251
251
  - - ! '>='
@@ -253,10 +253,10 @@ dependencies:
253
253
  version: 2.5.0
254
254
  type: :development
255
255
  prerelease: false
256
- version_requirements: *2166388100
256
+ version_requirements: *2153842440
257
257
  - !ruby/object:Gem::Dependency
258
258
  name: daemons
259
- requirement: &2166386680 !ruby/object:Gem::Requirement
259
+ requirement: &2153841880 !ruby/object:Gem::Requirement
260
260
  none: false
261
261
  requirements:
262
262
  - - ! '>='
@@ -264,10 +264,10 @@ dependencies:
264
264
  version: 1.1.0
265
265
  type: :development
266
266
  prerelease: false
267
- version_requirements: *2166386680
267
+ version_requirements: *2153841880
268
268
  - !ruby/object:Gem::Dependency
269
269
  name: bio-samtools
270
- requirement: &2166386000 !ruby/object:Gem::Requirement
270
+ requirement: &2153841380 !ruby/object:Gem::Requirement
271
271
  none: false
272
272
  requirements:
273
273
  - - ! '>='
@@ -275,10 +275,10 @@ dependencies:
275
275
  version: 0.3.2
276
276
  type: :development
277
277
  prerelease: false
278
- version_requirements: *2166386000
278
+ version_requirements: *2153841380
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: ruby-ensembl-api
281
- requirement: &2166385360 !ruby/object:Gem::Requirement
281
+ requirement: &2153840900 !ruby/object:Gem::Requirement
282
282
  none: false
283
283
  requirements:
284
284
  - - ! '>='
@@ -286,10 +286,10 @@ dependencies:
286
286
  version: 1.0.1
287
287
  type: :development
288
288
  prerelease: false
289
- version_requirements: *2166385360
289
+ version_requirements: *2153840900
290
290
  - !ruby/object:Gem::Dependency
291
291
  name: activerecord
292
- requirement: &2166400500 !ruby/object:Gem::Requirement
292
+ requirement: &2153840400 !ruby/object:Gem::Requirement
293
293
  none: false
294
294
  requirements:
295
295
  - - ! '>='
@@ -297,10 +297,10 @@ dependencies:
297
297
  version: 3.0.5
298
298
  type: :development
299
299
  prerelease: false
300
- version_requirements: *2166400500
300
+ version_requirements: *2153840400
301
301
  - !ruby/object:Gem::Dependency
302
302
  name: sqlite3
303
- requirement: &2166399280 !ruby/object:Gem::Requirement
303
+ requirement: &2153839920 !ruby/object:Gem::Requirement
304
304
  none: false
305
305
  requirements:
306
306
  - - ! '>='
@@ -308,10 +308,10 @@ dependencies:
308
308
  version: 1.3.3
309
309
  type: :development
310
310
  prerelease: false
311
- version_requirements: *2166399280
311
+ version_requirements: *2153839920
312
312
  - !ruby/object:Gem::Dependency
313
313
  name: bio-blastxmlparser
314
- requirement: &2166397820 !ruby/object:Gem::Requirement
314
+ requirement: &2153839360 !ruby/object:Gem::Requirement
315
315
  none: false
316
316
  requirements:
317
317
  - - ! '>='
@@ -319,10 +319,10 @@ dependencies:
319
319
  version: '0'
320
320
  type: :development
321
321
  prerelease: false
322
- version_requirements: *2166397820
322
+ version_requirements: *2153839360
323
323
  - !ruby/object:Gem::Dependency
324
324
  name: progressbar
325
- requirement: &2166397040 !ruby/object:Gem::Requirement
325
+ requirement: &2153838840 !ruby/object:Gem::Requirement
326
326
  none: false
327
327
  requirements:
328
328
  - - ! '>='
@@ -330,10 +330,10 @@ dependencies:
330
330
  version: 0.9.0
331
331
  type: :development
332
332
  prerelease: false
333
- version_requirements: *2166397040
333
+ version_requirements: *2153838840
334
334
  - !ruby/object:Gem::Dependency
335
335
  name: json
336
- requirement: &2166396420 !ruby/object:Gem::Requirement
336
+ requirement: &2153838360 !ruby/object:Gem::Requirement
337
337
  none: false
338
338
  requirements:
339
339
  - - ! '>='
@@ -341,10 +341,10 @@ dependencies:
341
341
  version: '0'
342
342
  type: :development
343
343
  prerelease: false
344
- version_requirements: *2166396420
344
+ version_requirements: *2153838360
345
345
  - !ruby/object:Gem::Dependency
346
346
  name: rake
347
- requirement: &2166395200 !ruby/object:Gem::Requirement
347
+ requirement: &2153897220 !ruby/object:Gem::Requirement
348
348
  none: false
349
349
  requirements:
350
350
  - - =
@@ -352,10 +352,10 @@ dependencies:
352
352
  version: 0.9.2.2
353
353
  type: :development
354
354
  prerelease: false
355
- version_requirements: *2166395200
355
+ version_requirements: *2153897220
356
356
  - !ruby/object:Gem::Dependency
357
357
  name: parallel
358
- requirement: &2166394460 !ruby/object:Gem::Requirement
358
+ requirement: &2153896700 !ruby/object:Gem::Requirement
359
359
  none: false
360
360
  requirements:
361
361
  - - ! '>='
@@ -363,7 +363,7 @@ dependencies:
363
363
  version: '0'
364
364
  type: :development
365
365
  prerelease: false
366
- version_requirements: *2166394460
366
+ version_requirements: *2153896700
367
367
  description: bio-ngs provides a framework for handling NGS data with BioRuby
368
368
  email: francesco.strozzi@gmail.com
369
369
  executables:
@@ -384,6 +384,11 @@ files:
384
384
  - bin/biongs
385
385
  - bio-ngs.gemspec
386
386
  - ext/mkrf_conf.rb
387
+ - features/cufflinks_gtf_parser.feature
388
+ - features/cufflinks_gtf_parser_indexing.feature
389
+ - features/step_definitions/cufflinks_gtf.rb
390
+ - features/step_definitions/cufflinks_gtf_parser_indexing.rb
391
+ - features/support/env.rb
387
392
  - lib/bio-ngs.rb
388
393
  - lib/bio/appl/ngs/bcftools.rb
389
394
  - lib/bio/appl/ngs/bcl2qseq.rb
@@ -391,6 +396,9 @@ files:
391
396
  - lib/bio/appl/ngs/bowtie-inspect.rb
392
397
  - lib/bio/appl/ngs/bwa.rb
393
398
  - lib/bio/appl/ngs/cufflinks.rb
399
+ - lib/bio/appl/ngs/cufflinks/gtf/gtf.rb
400
+ - lib/bio/appl/ngs/cufflinks/gtf/gtf_parser.rb
401
+ - lib/bio/appl/ngs/cufflinks/gtf/transcript.rb
394
402
  - lib/bio/appl/ngs/cufflinks/iterators.rb
395
403
  - lib/bio/appl/ngs/fastx.rb
396
404
  - lib/bio/appl/ngs/samtools.rb
@@ -412,8 +420,13 @@ files:
412
420
  - lib/bio/ngs/ext/bin/linux/samtools
413
421
  - lib/bio/ngs/ext/bin/osx/samtools
414
422
  - lib/bio/ngs/ext/versions.yaml
423
+ - lib/bio/ngs/fs.rb
415
424
  - lib/bio/ngs/graphics.rb
416
425
  - lib/bio/ngs/homology.rb
426
+ - lib/bio/ngs/illumina/fastq.rb
427
+ - lib/bio/ngs/illumina/illumina.rb
428
+ - lib/bio/ngs/illumina/project.rb
429
+ - lib/bio/ngs/illumina/sample.rb
417
430
  - lib/bio/ngs/ontology.rb
418
431
  - lib/bio/ngs/quality.rb
419
432
  - lib/bio/ngs/record.rb
@@ -421,6 +434,7 @@ files:
421
434
  - lib/bio/ngs/utils.rb
422
435
  - lib/development_tasks.rb
423
436
  - lib/enumerable.rb
437
+ - lib/meta.rb
424
438
  - lib/tasks/bwa.thor
425
439
  - lib/tasks/convert.thor
426
440
  - lib/tasks/filter.thor
@@ -435,8 +449,22 @@ files:
435
449
  - lib/templates/README.tt
436
450
  - lib/templates/db.tt
437
451
  - lib/wrapper.rb
452
+ - spec/bio/ngs/fs_spec.rb
453
+ - spec/bio/ngs/illumina/fastq_spec.rb
454
+ - spec/bio/ngs/illumina/illumina_spec.rb
455
+ - spec/bio/ngs/illumina/project_spec.rb
456
+ - spec/bio/ngs/illumina/sample_spec.rb
457
+ - spec/bio/ngs/illumina/samples_spec.rb
438
458
  - spec/converter_qseq_spec.rb
459
+ - spec/filter_spec.rb
439
460
  - spec/fixture/s_1_1_1108_qseq.txt
461
+ - spec/fixture/table_filter_list.txt
462
+ - spec/fixture/table_filter_list_first_column.txt
463
+ - spec/fixture/table_filter_source.tsv
464
+ - spec/fixture/test-filtered-reference.fastq.gz
465
+ - spec/fixture/test-merged-reference.fastq.gz
466
+ - spec/fixture/test.fastq.gz
467
+ - spec/meta_spec.rb
440
468
  - spec/quality_spec.rb
441
469
  - spec/sff_extract_spec.rb
442
470
  - spec/spec_helper.rb
@@ -469,7 +497,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
469
497
  version: '0'
470
498
  segments:
471
499
  - 0
472
- hash: -1654016565511947688
500
+ hash: -1070352367343550027
473
501
  required_rubygems_version: !ruby/object:Gem::Requirement
474
502
  none: false
475
503
  requirements: