Class: Bioinform::WordwiseBackground

Inherits:
Object
  • Object
show all
Includes:
Background, FrequencyCalculations
Defined in:
lib/bioinform/background.rb

Constant Summary collapse

UniformFrequencies =
[0.25, 0.25, 0.25, 0.25]
WordwiseCounts =
[1, 1, 1, 1]

Constants included from Background

Background::Uniform, Background::Wordwise

Instance Method Summary collapse

Methods included from Background

from_frequencies, from_gc_content, from_string, uniform, wordwise

Methods included from FrequencyCalculations

#mean, #mean_square, #symmetric?

Instance Method Details

#==(other) ⇒ Object



82
83
84
# File 'lib/bioinform/background.rb', line 82

def ==(other)
  self.class == other.class
end

#countsObject



78
# File 'lib/bioinform/background.rb', line 78

def counts; WordwiseCounts; end

#frequenciesObject



77
# File 'lib/bioinform/background.rb', line 77

def frequencies; UniformFrequencies; end

#to_sObject



86
87
88
# File 'lib/bioinform/background.rb', line 86

def to_s
  'wordwise'
end

#volumeObject



79
# File 'lib/bioinform/background.rb', line 79

def volume; 4; end

#wordwise?Boolean

Returns:

  • (Boolean)


80
# File 'lib/bioinform/background.rb', line 80

def wordwise?; true; end