Sha256: 29e179271b836e13c2f55ddfdd2a0995f303e7cbd9ccde3a1c874950efc1635f
Contents?: true
Size: 404 Bytes
Versions: 4
Compression:
Stored size: 404 Bytes
Contents
module Bioinform module ConversionAlgorithms module PCM2PPMConverter # parameters hash is ignored def self.convert(pcm, parameters = {}) matrix = pcm.each_position.map do |pos| pos.map do |el| el.to_f / pcm.count end end PPM.new(pcm.get_parameters.merge(matrix: matrix)) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems