Method: Ytilib::PPM#initialize

Defined in:
lib/sequence_logo/ytilib/pm.rb

#initialize(size, matrix = nil, words_count = nil) ⇒ PPM

DEPRECATED, use iupacomp! instead def make_N_comp!

@matrix['N'] = (0...size).collect { 0.25 }
return self

end



443
444
445
446
447
448
# File 'lib/sequence_logo/ytilib/pm.rb', line 443

def initialize(size, matrix = nil, words_count = nil)
  checkerr("matrix['A'].size != size") { matrix != nil && size != matrix['A'].size }
  @size = size
  @matrix = matrix == nil ? PM.new_matrix(size) : matrix
  @words_count = words_count
end