bio-fastqc 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/bio/fastqc/semantics.rb +26 -23
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1a0b30382d2c41b0fc5327cc1e18ce63b7f190e
4
- data.tar.gz: 479c6f71276f0360f15cc3286bafe8f12b7404d2
3
+ metadata.gz: d2d38d1a029d00c2d5d4b986245ae1ed97df914a
4
+ data.tar.gz: c45aecab279bff261d7aeabd8552e9077c97b147
5
5
  SHA512:
6
- metadata.gz: 56c3e7b739a99e6ee39ffc958a8f59f61438ebfd44a7dd3ae9dcb1ea0ea481fb40c927673f6f8ae052e4422cfb4b8e38b6da542ace153b24d7e4f439284f68b3
7
- data.tar.gz: 41ef0bc02eb028d9f4de4661cd4cc67159159d1e17ff4f5c06d8779ee3b0ddaf1b348f6aea1d06222873443820aba50133cb6732cfe2a8f875e87c6f12f2573f
6
+ metadata.gz: 0d74e381150aec1772d24fd9178981a6edc6ef59e5c89b5ae9fc3858ebbf64751d8b313a3b36c1563ed1cb4f8df2b076d16e554a653445a70f1ea88398c10200
7
+ data.tar.gz: db39e89d15b366f73e3203cfc130946d0c794aea1e43ee0f7aa68f0af042a2f6fd4262c2a21b740c00277c655567cf31dbdfc106f3dbc17fbfc440768618372b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.7.0
@@ -6,8 +6,9 @@ require 'rdf/turtle'
6
6
  module Bio
7
7
  module FastQC
8
8
  class Semantics
9
- def initialize(fastqc_object, id: nil)
9
+ def initialize(fastqc_object, id: nil, tiny: true)
10
10
  @id = id
11
+ @tiny = tiny
11
12
  @fastqc_object = fastqc_object
12
13
  end
13
14
 
@@ -35,7 +36,9 @@ module Bio
35
36
 
36
37
  def json_ld_object
37
38
  object = [object_core, static_value_modules].flatten.inject(&:merge)
38
- object["hasMatrix"] = matrix_modules
39
+ if !@tiny
40
+ object["hasMatrix"] = matrix_modules
41
+ end
39
42
  object
40
43
  end
41
44
 
@@ -139,7 +142,7 @@ module Bio
139
142
  def total_sequences
140
143
  {
141
144
  "totalSequences" => {
142
- "@type" => "SequenceReadContent",
145
+ "@type" => "SequenceReadAmount",
143
146
  "hasUnit" => "uo:CountUnit",
144
147
  "rdf:value" => @fastqc_object[:total_sequences],
145
148
  }
@@ -149,7 +152,7 @@ module Bio
149
152
  def filtered_sequences
150
153
  {
151
154
  "filteredSequences" => {
152
- "@type" => "SequenceReadContent",
155
+ "@type" => "SequenceReadAmount",
153
156
  "hasUnit" => "uo:CountUnit",
154
157
  "rdf:value" => @fastqc_object[:filtered_sequences],
155
158
  }
@@ -169,7 +172,7 @@ module Bio
169
172
  def percent_gc
170
173
  {
171
174
  "percentGC" => {
172
- "@type" => "NucleotideBaseContent",
175
+ "@type" => "SequenceBaseAmount",
173
176
  "hasUnit" => "uo:CountUnit",
174
177
  "rdf:value" => @fastqc_object[:percent_gc],
175
178
  }
@@ -258,7 +261,7 @@ module Bio
258
261
  "rdf:value" => quality,
259
262
  },
260
263
  "sequenceReadCount" => {
261
- "@type" => "SequenceReadContent",
264
+ "@type" => "SequenceReadAmount",
262
265
  "hasUnit" => "uo:CountUnit",
263
266
  "rdf:value" => count,
264
267
  },
@@ -288,22 +291,22 @@ module Bio
288
291
  "rowIndex" => i,
289
292
  "basePosition" => base,
290
293
  "percentGuanine" => {
291
- "@type" => "NucleotideBaseContent",
294
+ "@type" => "SequenceBaseAmount",
292
295
  "hasUnit" => "uo:Percentage",
293
296
  "rdf:value" => guanine,
294
297
  },
295
298
  "percentAdenine" => {
296
- "@type" => "NucleotideBaseContent",
299
+ "@type" => "SequenceBaseAmount",
297
300
  "hasUnit" => "uo:Percentage",
298
301
  "rdf:value" => adenine,
299
302
  },
300
303
  "percentThymine" => {
301
- "@type" => "NucleotideBaseContent",
304
+ "@type" => "SequenceBaseAmount",
302
305
  "hasUnit" => "uo:Percentage",
303
306
  "rdf:value" => thymine,
304
307
  },
305
308
  "percentCytosine" => {
306
- "@type" => "NucleotideBaseContent",
309
+ "@type" => "SequenceBaseAmount",
307
310
  "hasUnit" => "uo:Percentage",
308
311
  "rdf:value" => chytosine,
309
312
  },
@@ -326,12 +329,12 @@ module Bio
326
329
  "@type" => "Row",
327
330
  "rowIndex" => i,
328
331
  "percentGC" => {
329
- "@type" => "NucleotideBaseContent",
332
+ "@type" => "SequenceBaseAmount",
330
333
  "hasunit" => "uo:Percent",
331
334
  "rdf:value" => gc_content,
332
335
  },
333
336
  "sequenceReadCount" => {
334
- "@type" => "SequenceReadContent",
337
+ "@type" => "SequenceReadAmount",
335
338
  "hasUnit" => "uo:CountUnit",
336
339
  "rdf:value" => count,
337
340
  },
@@ -358,7 +361,7 @@ module Bio
358
361
  "rowIndex" => i,
359
362
  "basePosition" => base,
360
363
  "nCount" => {
361
- "@type" => "NContent",
364
+ "@type" => "SequenceBaseAmount",
362
365
  "hasUnit" => "uo:Percentage",
363
366
  "rdf:value" => n_count,
364
367
  },
@@ -387,7 +390,7 @@ module Bio
387
390
  "rdf:value" => length,
388
391
  },
389
392
  "sequenceReadCount" => {
390
- "@type" => "SequenceReadContent",
393
+ "@type" => "SequenceReadAmount",
391
394
  "hasUnit" => "uo:CountUnit",
392
395
  "rdf:value" => count,
393
396
  },
@@ -420,7 +423,7 @@ module Bio
420
423
  "rdf:value" => duplication_level,
421
424
  },
422
425
  "sequenceReadRelativeCount" => {
423
- "@type" => "SequenceReadContent",
426
+ "@type" => "SequenceReadAmount",
424
427
  "hasUnit" => "uo:CountUnit",
425
428
  "rdf:value" => relative_count,
426
429
  },
@@ -446,12 +449,12 @@ module Bio
446
449
  "rowIndex" => i,
447
450
  "overrepresentedSequence" => sequence,
448
451
  "sequenceReadCount" => {
449
- "@type" => "SequenceReadContent",
452
+ "@type" => "SequenceReadAmount",
450
453
  "hasUnit" => "uo:CountUnit",
451
454
  "rdf:value" => count,
452
455
  },
453
456
  "sequenceReadPercentage" => {
454
- "@type" => "SequenceReadContent",
457
+ "@type" => "SequenceReadAmount",
455
458
  "hasUnit" => "uo:Percentage",
456
459
  "rdf:value" => percentage,
457
460
  },
@@ -483,17 +486,17 @@ module Bio
483
486
  "rowIndex" => i,
484
487
  "kmerSequence" => sequence,
485
488
  "sequenceReadCount" => {
486
- "@type" => "SequenceReadContent",
489
+ "@type" => "SequenceReadAmount",
487
490
  "hasUnit" => "uo:CountUnit",
488
491
  "rdf:value" => count,
489
492
  },
490
493
  "observedPerExpectedOverall" => {
491
- "@type" => "SequenceReadContent",
494
+ "@type" => "SequenceReadAmount",
492
495
  "hasUnit" => "uo:Ratio",
493
496
  "rdf:value" => ratio_overall,
494
497
  },
495
498
  "observedPerExpectedMax" => {
496
- "@type" => "SequenceReadContent",
499
+ "@type" => "SequenceReadAmount",
497
500
  "hasUnit" => "uo:Ratio",
498
501
  "rdf:value" => ratio_max,
499
502
  },
@@ -565,7 +568,7 @@ module Bio
565
568
  def overall_n_content
566
569
  {
567
570
  "overallNContent" => {
568
- "@type" => "NContent",
571
+ "@type" => "SequenceBaseAmount",
569
572
  "hasUnit" => "uo:Percentage",
570
573
  "rdf:value" => @fastqc_object[:overall_n_content],
571
574
  }
@@ -658,8 +661,8 @@ module Bio
658
661
  def sos_class_for_values
659
662
  [
660
663
  "PhredQualityScore",
661
- "NucleotideBaseContent",
662
- "SequenceReadContent",
664
+ "SequenceBaseAmount",
665
+ "SequenceReadAmount",
663
666
  "SequenceReadLength",
664
667
  "SequenceDuplicationLevel",
665
668
  ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-fastqc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tazro Inutano Ohta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip