rbbt-dm 1.1.12 → 1.1.13

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: e1932fe4642c0d1d1721d34009d64efa86f59e81
4
- data.tar.gz: 37b554f9da50c45d6b699b854a6952f7759397de
3
+ metadata.gz: baee53ce898ba3d2e85a69f3e82347e91f3aa5ea
4
+ data.tar.gz: 8d772ed5326b921514aa10e01c252df7bc134f10
5
5
  SHA512:
6
- metadata.gz: d002a027be7f3e944de9a05acc5a6f6e316422e163054d3ffbc969fd9c1660ed4851e33571e30eece81ace26cc63b4d794701dbe64c809eb322b00704e0b9f8f
7
- data.tar.gz: 24c51c2c8bd6adf77ddef19b452b51147e2779fd8aecd40f9807baf368c82b4b66e7937c068dd601047f41ef542fa30f2da4f66f8fdd6d85f6df580d8c0a0799
6
+ metadata.gz: 3108556ce956bae5c24edaec25b68c2bdc7156ac4a8eed9bc1c68f5519578624ed4965de58ec2c6ca7e7593e9c57099719b8bd8df67706426ef48800de37a947
7
+ data.tar.gz: 4f214c61a3b5d530c0319887101d18fc2ccd1f5ce71c8a4316a549132ceb644457f54910b1a7eb8692ee8d5b6b2350bb1c50c5a448693cc8aabe359eeb3c8cc2
@@ -503,8 +503,11 @@ module TSV
503
503
  tsv.with_unnamed do
504
504
  tsv.through do |key, values|
505
505
  next if masked and masked.include? key
506
- pvalue = rank_enrichment_for_list(list, values.flatten, options)
507
- res[key] = [pvalue, (values.respond_to?(:subset) ? values.subset(list) : values & list)]
506
+ values = values.flatten.compact.reject{|v| v.empty?}
507
+ matches = (values.respond_to?(:subset) ? values.subset(list) : values & list).compact
508
+ next if matches.length < 2
509
+ pvalue = rank_enrichment_for_list(list, values, options)
510
+ res[key] = [pvalue, matches]
508
511
  end
509
512
  end
510
513
  end
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.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.2.2
133
+ rubygems_version: 2.4.6
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Data-mining and statistics