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



84
85
86
# File 'lib/bioinform/background.rb', line 84

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

#countsObject



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

def counts; WordwiseCounts; end

#frequenciesObject



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

def frequencies; UniformFrequencies; end

#to_sObject



88
89
90
# File 'lib/bioinform/background.rb', line 88

def to_s
  'wordwise'
end

#volumeObject



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

def volume; 4; end

#wordwise?Boolean

Returns:

  • (Boolean)


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

def wordwise?; true; end