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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -7
- data/lib/obo_parser/utilities/viz.rb +1 -1
- data/lib/obo_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96b2e79a66acf60aa27b63ba8db90aa9d44a6b00
|
4
|
+
data.tar.gz: ec82eabd0917ca54b74197d798523fe827cec585
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c50158118a407e908f7c6ab46830ea21d6b87fb7c73898418883759a91a1b17771c86956a7bb9cb81f2fdefc6079b70eb52687d9689fc3b6bf0c9a7b6ee871b
|
7
|
+
data.tar.gz: ae3a82ba6cb523277e7615608393bb7259ee8ec6140becf4330ffbeb12d4d20fd0bb69523cef9c8e489306c527518bc71d4b02ac0a7edefaff53335834a9d908
|
data/Gemfile.lock
CHANGED
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
|
-
##
|
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 ||=
|
17
|
+
cutoff ||= data.count + 1
|
18
18
|
|
19
19
|
data.each_with_index do |row, i|
|
20
20
|
break if i > cutoff
|
data/lib/obo_parser/version.rb
CHANGED