obo_parser 0.4.1 → 0.4.2

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: ea197b66fa1650e919ff7fdf4f9eebdeec337769
4
- data.tar.gz: 3670014dce7e8ca9f829bbe7e84bf1730cc68ef7
3
+ metadata.gz: 96b2e79a66acf60aa27b63ba8db90aa9d44a6b00
4
+ data.tar.gz: ec82eabd0917ca54b74197d798523fe827cec585
5
5
  SHA512:
6
- metadata.gz: cf46ba35c98764c1e73b3bd18a56b3ccb8a0bc3a9e4e69724304e592ec8751dea8b2ef4fba88a71233e0980f374173e6f851b69903df147f5aa1068e9e53f9bb
7
- data.tar.gz: 3948022c74a041d5ac509160bdb9b51431ab6b6a22579a32a22d810fa183cd3c461dc632fedd196300c44a6327c59b00c1acddd2ae67bb58f5265349f705a9cb
6
+ metadata.gz: 5c50158118a407e908f7c6ab46830ea21d6b87fb7c73898418883759a91a1b17771c86956a7bb9cb81f2fdefc6079b70eb52687d9689fc3b6bf0c9a7b6ee871b
7
+ data.tar.gz: ae3a82ba6cb523277e7615608393bb7259ee8ec6140becf4330ffbeb12d4d20fd0bb69523cef9c8e489306c527518bc71d4b02ac0a7edefaff53335834a9d908
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- obo_parser (0.4.1)
4
+ obo_parser (0.4.2)
5
5
  rake (~> 12.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -12,8 +12,6 @@ A simple Ruby gem for parsing OBO 1.2 (?4) formatted ontology files. Useful for
12
12
  ## Use
13
13
 
14
14
  ### General
15
-
16
- require 'rubygems'
17
15
  require 'obo_parser'
18
16
  o = parse_obo_file(File.read('my_ontology.obo')) # => An OboParser instance
19
17
  first_term = o.terms.first # => An OboParser#Term instance
@@ -50,7 +48,7 @@ A simple Ruby gem for parsing OBO 1.2 (?4) formatted ontology files. Useful for
50
48
 
51
49
  See also /test/test_obo_parser.rb
52
50
 
53
- ## Utilties
51
+ ## Utilities
54
52
 
55
53
  A small set of methods (e.g. comparing OBO ontologies) utilizing the gem are included in /lib/utilities.rb. For example: 1) shared labels across sets of ontologies can be found and returned, 2) ontologies can be dumped into a simple Cytoscape node/edge format; 3) given a set of correspondances between two ontologies various reports can be made.
56
54
 
@@ -58,10 +56,6 @@ A small set of methods (e.g. comparing OBO ontologies) utilizing the gem are inc
58
56
 
59
57
  OboParser::Utilities::Viz.mock_coordinate_space(o, size: 100) # => STDOUT tab delimited table with x, y, z, identifier, label
60
58
 
61
- ## Documentation
62
-
63
- Code documentation is slowly being formalized using Yard.
64
-
65
59
  ## Contributing
66
60
 
67
61
  Fork, test, code, test, pull request.
@@ -14,7 +14,7 @@ module OboParser
14
14
  edge_length = (size / 2) - (size * 0.2)
15
15
  total_terms = ontology.terms.size
16
16
  grid_length = Math.cbrt(total_terms).ceil.to_i
17
- cutoff ||= size + 1
17
+ cutoff ||= data.count + 1
18
18
 
19
19
  data.each_with_index do |row, i|
20
20
  break if i > cutoff
@@ -1,3 +1,3 @@
1
1
  module OboParser
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obo_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Yoder