Module: MARQ::RankQuery
- Defined in:
- lib/MARQ/main.rb
Constant Summary collapse
- NULL_SIZE =
10000
Class Method Summary collapse
- .add_pvalues(scores, up_size, down_size) ⇒ Object
- .dataset_scores(dataset, up, down) ⇒ Object
- .organism_scores(organism, up, down) ⇒ Object
- .platform_scores(platform, up, down) ⇒ Object
Class Method Details
.add_pvalues(scores, up_size, down_size) ⇒ Object
268 269 270 271 |
# File 'lib/MARQ/main.rb', line 268 def self.add_pvalues(scores, up_size, down_size) null_scores = Score.null_scores(up_size, down_size, NULL_SIZE) Score.add_pvalues(scores, null_scores) end |
.dataset_scores(dataset, up, down) ⇒ Object
245 246 247 |
# File 'lib/MARQ/main.rb', line 245 def self.dataset_scores(dataset, up, down) Score.scores_up_down(dataset, up, down) end |
.organism_scores(organism, up, down) ⇒ Object
259 260 261 262 263 264 265 266 |
# File 'lib/MARQ/main.rb', line 259 def self.organism_scores(organism, up, down) scores = {} MARQ::Platform.organism_platforms(organism).each do |platform| scores.merge!(platform_scores(MARQ::Name.cross_platform(platform), up, down)) end scores end |
.platform_scores(platform, up, down) ⇒ Object
249 250 251 252 253 254 255 256 257 |
# File 'lib/MARQ/main.rb', line 249 def self.platform_scores(platform, up, down) scores = {} MARQ::Platform.datasets(platform).each do |dataset| dataset = MARQ::Name.cross_platform dataset if MARQ::Name.is_cross_platform?(platform) scores.merge!(dataset_scores(dataset, up, down)) end scores end |