rbbt-dm 1.1.10 → 1.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/statistics/hypergeometric.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff393dd8bd60192463ea80db606bd63dd5390575
|
4
|
+
data.tar.gz: 570d6480780695d03275bfa336bcaf5287fccd71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 838f210c4c4bb1cf605e99d8dd2c2942eb2aff5198681017db7d745a3081a6d6a94752b94d42762a973001b945d6049a8191b48cac846662cfd87a9462400e8c
|
7
|
+
data.tar.gz: 4c2ad52302eb86a1301429bb5806a45c6b842d2f0bd0bcfe75e9058390b04b07911e5711c284d670bcf85169adcf88193ad448b30fc4207493be26042da382a1
|
@@ -115,6 +115,7 @@ module TSV
|
|
115
115
|
fields = [fields] if String === fields or Symbol === fields
|
116
116
|
rename = options.delete :rename
|
117
117
|
|
118
|
+
field_pos = fields.collect{|f| self.fields.index f}.compact
|
118
119
|
persistence_path = self.respond_to?(:persistence_path)? self.persistence_path : nil
|
119
120
|
Persist.persist(filename, :yaml, :fields => fields, :persist => persistence, :prefix => "Hyp.Geo.Counts", :other => {:rename => rename, :persistence_path => persistence_path}) do
|
120
121
|
data ||= {}
|
@@ -123,22 +124,22 @@ module TSV
|
|
123
124
|
|
124
125
|
case type
|
125
126
|
when :single
|
126
|
-
through :key,
|
127
|
+
through :key, field_pos do |key, value|
|
127
128
|
next if value.nil?
|
128
129
|
data[value] ||= []
|
129
130
|
data[value] << key
|
130
131
|
end
|
131
132
|
when :double
|
132
|
-
through :key,
|
133
|
+
through :key, field_pos do |key, values|
|
133
134
|
values.flatten.compact.uniq.each{|value| data[value] ||= []; data[value] << key}
|
134
135
|
end
|
135
136
|
when :list
|
136
|
-
through :key,
|
137
|
+
through :key, field_pos do |key, values|
|
137
138
|
next if values.nil?
|
138
139
|
values.compact.uniq.each{|value| data[value] ||= []; data[value] << key}
|
139
140
|
end
|
140
141
|
when :flat
|
141
|
-
through :key,
|
142
|
+
through :key, field_pos do |key, values|
|
142
143
|
next if values.nil?
|
143
144
|
values.compact.uniq.each{|value| data[value] ||= []; data[value] << key}
|
144
145
|
end
|
@@ -234,7 +235,6 @@ module TSV
|
|
234
235
|
}
|
235
236
|
end
|
236
237
|
end
|
237
|
-
|
238
238
|
end
|
239
239
|
|
240
240
|
if Array === background and not background.empty?
|
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.
|
4
|
+
version: 1.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|