rbbt-dm 1.1.36 → 1.1.37

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: d7f4b80f871a403ef1cdcd0253645bc22196e50f
4
- data.tar.gz: 986977cae880eb91dc371ebfbe947d24a1b7bb84
3
+ metadata.gz: 71fdaa734ed3b4e8184825c24afac4892c4c59f4
4
+ data.tar.gz: e592516363b8af1c1dcf10fc44ac7536d2f2befc
5
5
  SHA512:
6
- metadata.gz: c56806c3e903c453eeeacd8cbb5d95e26a7e5961d8c14779c0dcfd667ca18100486ac256a9298949a6ef624153e3c83b4fe923702d38edb62bb62f4525c56c96
7
- data.tar.gz: 4ee8e20378f61ba5409c054b23e520b70e2175e858b5e6a8ad16bfd8eb98ec95b11a573ad653cebb022d36c2938c72fadc29652e8a8c4a37cad8c03d34e1a2dd
6
+ metadata.gz: ed5bfa1e2425957a311e3df4302717a3b56201c94f6dbb0d04dc8534f45336f29e8054b4ed9c63751bf381069b4dfcc0640612cc151e95c69064986e45eece13
7
+ data.tar.gz: 65f9824324f40e3e34fa7b34c8db8db27c979359a601f397490d75dc6857e91760eccb53ddcd82141c625cf0a6ed0c407f82fc84d3607634558a49072464fd3b
@@ -158,7 +158,7 @@ module FDR
158
158
 
159
159
  field_pos = (String === field ) ? data.fields.index(field) : field
160
160
 
161
- field_pos = 0 if field_pos.nil? and data.respond_to?(:type) and data.type != :single
161
+ field_pos = nil if data.respond_to?(:type) and data.type == :single
162
162
 
163
163
  data.collect{|k,vs|
164
164
  v = field_pos.nil? ? vs : vs[field_pos]
@@ -175,13 +175,13 @@ module FDR
175
175
  new_values = FDR.adjust(values)
176
176
  keys.zip(new_values).each do |k,v|
177
177
  vs = data[k]
178
- if field
178
+ if field_pos
179
179
  vs[field_pos] = v
180
180
  else
181
181
  if Array === vs
182
182
  vs[0] = v
183
183
  else
184
- data[k] = vs
184
+ data[k] = v
185
185
  end
186
186
  end
187
187
  end
@@ -1,4 +1,4 @@
1
- library(limma)
1
+ rbbt.require('limma')
2
2
 
3
3
  #########################################################################
4
4
  # Model processing
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-dm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.36
4
+ version: 1.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2017-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util
@@ -136,17 +136,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.6.6
139
+ rubygems_version: 2.6.13
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Data-mining and statistics
143
143
  test_files:
144
- - test/test_helper.rb
145
- - test/rbbt/vector/model/test_svm.rb
146
- - test/rbbt/vector/test_model.rb
147
144
  - test/rbbt/network/test_paths.rb
148
145
  - test/rbbt/matrix/test_barcode.rb
149
146
  - test/rbbt/statistics/test_random_walk.rb
147
+ - test/rbbt/statistics/test_fisher.rb
150
148
  - test/rbbt/statistics/test_fdr.rb
151
149
  - test/rbbt/statistics/test_hypergeometric.rb
152
- - test/rbbt/statistics/test_fisher.rb
150
+ - test/rbbt/vector/test_model.rb
151
+ - test/rbbt/vector/model/test_svm.rb
152
+ - test/test_helper.rb