semtools 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: 4aae0609a7812200add49c241e5cf0954d1c7d933e62e95c018ddb25dd7dbc97
4
- data.tar.gz: e1ef89565d1fc515a5792ed9028bdc081e6d26726310f8272d23e3cc3267beca
3
+ metadata.gz: 8fc29918a31045893647355dd72264a04386c5171c48ea868f7e9bbc93062151
4
+ data.tar.gz: 692ce02343cb00ac37bbc34476da08386bedf0eaca7946689eb62c9a1f06d555
5
5
  SHA512:
6
- metadata.gz: 9849c36f8f6e011ae35a57a200dec9e51d3ba7e95666d092dac4db72faacaf449bf4598fa48ca46f759224f9752708c557b2ac6bb2f065e1777d5b08eda30f27
7
- data.tar.gz: 28980418596cf4593e87ac1ac0fcd10d343237b84b573511d8fb1cfffae00fe0d9df1246e8a6707975ad207f96e5696588efaa7330be1b7d6cf4508ea64b7ed7
6
+ metadata.gz: 1b52667c81a0a25786b91156e9ed88a8de47e86fd18baddffc43b05ff199f95129b09da4e03025b6fb709d18a0274e22bf4a55c81471fda748e75aadca4d6ef1
7
+ data.tar.gz: 46e5b49f611c021ee8576a522a0a6ef22a8b9ed349084dadb9e44fd76c712c05221e6314985f08bdba575ac2dd849f1f14d84d5ae686889f33fac993132a8372
data/bin/onto2json.rb CHANGED
File without changes
data/bin/strsimnet.rb CHANGED
@@ -4,6 +4,7 @@
4
4
  # @description script to calculate similitude between disease names
5
5
 
6
6
 
7
+
7
8
  #########################################################
8
9
  # AUTHOR NOTES
9
10
  #########################################################
@@ -948,7 +948,7 @@ class Ontology
948
948
  elsif term.is_a? Numeric # Numeric dictionary
949
949
  [value.to_s.to_sym, term]
950
950
  elsif flag == :is_a
951
- [value.to_sym, term.to_sym]
951
+ [value.to_sym, term.map{|v| v.to_sym}]
952
952
  elsif term.kind_of?(Array)
953
953
  [value.to_sym, term.map{|t| t.to_sym}]
954
954
  else
@@ -1139,7 +1139,7 @@ class Ontology
1139
1139
 
1140
1140
  # Calculates :is_a dictionary without alternatives substitution
1141
1141
  def calc_ancestors_dictionary
1142
- self.calc_dictionary(:is_a, substitute_alternatives: false, self_type_references: true)
1142
+ self.calc_dictionary(:is_a, substitute_alternatives: false, self_type_references: true, multiterm: true)
1143
1143
  end
1144
1144
 
1145
1145
 
@@ -1,3 +1,3 @@
1
1
  module Semtools
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - seoanezonjic
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-17 00:00:00.000000000 Z
12
+ date: 2021-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: text