pets 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/pets.rb CHANGED
@@ -1,4 +1,12 @@
1
1
  require "pets/version"
2
+ require "pets/constants"
3
+ require "parsers/cohort_parser"
4
+ require "pets/coPatReporterMethods"
5
+ require "pets/generalMethods"
6
+ require "pets/io"
7
+ require "pets/phen2reg_methods"
8
+ require "pets/cohort"
9
+ require "pets/genomic_features"
2
10
 
3
11
  module Pets
4
12
  class Error < StandardError; end
data/pets.gemspec CHANGED
@@ -45,6 +45,7 @@ Gem::Specification.new do |spec|
45
45
  spec.add_dependency "report_html"
46
46
  spec.add_dependency "numo-narray"
47
47
  spec.add_dependency "npy"
48
+ spec.add_dependency "expcalc"
48
49
  spec.add_dependency "parallel", "~> 1.20.1"
49
50
 
50
51
  end
@@ -161,17 +161,15 @@
161
161
  <%
162
162
  @hash_vars[:clustering_methods].each do |clust_method|
163
163
  plot = File.join(@hash_vars[:temp_folder], "#{clust_method}_heatmap.png")
164
- if File.exists?(plot) %>
164
+ if File.exist?(plot) %>
165
165
  <%= embed_img(plot, 'width="800" height="800"') %>
166
166
  <% else
167
167
  puts 'File not found or method not specified.'
168
168
  end
169
- end
170
- %>
171
- <%=
172
- plot = File.join(@hash_vars[:temp_folder],'sim_boxplot.png')
173
- if File.exists?(plot)
174
- embed_img(plot, 'width="800" height="800"')
169
+ plot = File.join(@hash_vars[:temp_folder], clust_method + '_sim_boxplot.png')
170
+ if File.exist?(plot) %>
171
+ <%= embed_img(plot, 'width="800" height="800"') %>
172
+ <% end
175
173
  end
176
174
  %>
177
175
  </div>
@@ -141,7 +141,7 @@
141
141
  row.each_with_index do |cell, i|
142
142
  if i == 3
143
143
  row[i] = cell.map{|h|
144
- hpo_names, rejected = hpo.translate_codes2names([h])
144
+ hpo_names, rejected = hpo.translate_names([h])
145
145
  "#{get_hpo_link(h)}: #{hpo_names.first}"
146
146
  }.join("\n<br>")
147
147
  elsif i == 4
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elena Rojano, Pedro Seoane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-09 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: expcalc
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: parallel
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -173,12 +187,14 @@ executables:
173
187
  - get_PR_values.rb
174
188
  - get_network_nodes.rb
175
189
  - get_sorted_profs.rb
190
+ - install_deps.rb
176
191
  - merge_by_cluster.rb
177
192
  - merge_pairs.rb
178
193
  - paco_translator.rb
179
194
  - phen2reg.rb
180
195
  - phen2reg_predictor_check.rb
181
196
  - profile_cleaner.rb
197
+ - profiles2phenopacket.rb
182
198
  - reg2phen.rb
183
199
  - region_to_patients_generator.rb
184
200
  - relate_CI_to_association_value.rb
@@ -204,18 +220,28 @@ files:
204
220
  - bin/get_PR_values.rb
205
221
  - bin/get_network_nodes.rb
206
222
  - bin/get_sorted_profs.rb
223
+ - bin/install_deps.rb
207
224
  - bin/merge_by_cluster.rb
208
225
  - bin/merge_pairs.rb
209
226
  - bin/paco_translator.rb
210
227
  - bin/phen2reg.rb
211
228
  - bin/phen2reg_predictor_check.rb
212
229
  - bin/profile_cleaner.rb
230
+ - bin/profiles2phenopacket.rb
213
231
  - bin/reg2phen.rb
214
232
  - bin/region_to_patients_generator.rb
215
233
  - bin/relate_CI_to_association_value.rb
216
234
  - bin/setup
235
+ - example_datasets/associations_file.txt
236
+ - example_datasets/example_patient.txt
237
+ - example_datasets/example_patient_hpos.txt
238
+ - example_datasets/genes.txt
239
+ - example_datasets/hpo2ci.txt
240
+ - example_datasets/hummu_congenital_full_dataset.txt
241
+ - example_datasets/launch.sh
217
242
  - external_code/generate_boxpot.R
218
243
  - external_code/get_clusters.R
244
+ - external_code/install_R_dependencies.R
219
245
  - external_code/lines.R
220
246
  - external_code/plot_area.R
221
247
  - external_code/plot_boxplot.R
@@ -242,7 +268,12 @@ files:
242
268
  - external_data/uniq_hpo_with_CI.txt
243
269
  - lib/pets.rb
244
270
  - lib/pets/coPatReporterMethods.rb
271
+ - lib/pets/cohort.rb
272
+ - lib/pets/constants.rb
245
273
  - lib/pets/generalMethods.rb
274
+ - lib/pets/genomic_features.rb
275
+ - lib/pets/io.rb
276
+ - lib/pets/parsers/cohort_parser.rb
246
277
  - lib/pets/phen2reg_methods.rb
247
278
  - lib/pets/reg2phen_methods.rb
248
279
  - lib/pets/version.rb
@@ -272,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
303
  - !ruby/object:Gem::Version
273
304
  version: '0'
274
305
  requirements: []
275
- rubygems_version: 3.2.3
306
+ rubygems_version: 3.2.15
276
307
  signing_key:
277
308
  specification_version: 4
278
309
  summary: Suite with predictive tools.