Class: Bio::ColorScheme::Score

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/util/color_scheme.rb

Overview

A class template for color code referencing of color schemes that are score based. This template is expected to change when the scores are moved into bio/data/aa

Direct Known Subclasses

Buried, Helix, Hydropathy, Strand, Turn

Class Method Summary collapse

Class Method Details

.[](x) ⇒ Object

:nodoc:



129
130
131
132
133
# File 'lib/bio/util/color_scheme.rb', line 129

def self.[](x)
  return if x.nil?
  # accept symbols and any case
  @colors[x.to_s.upcase]
end

.colorsObject



138
# File 'lib/bio/util/color_scheme.rb', line 138

def self.colors() @colors end

.max(x) ⇒ Object



136
# File 'lib/bio/util/color_scheme.rb', line 136

def self.max(x) @max end

.min(x) ⇒ Object



135
# File 'lib/bio/util/color_scheme.rb', line 135

def self.min(x) @min end

.scoresObject



137
# File 'lib/bio/util/color_scheme.rb', line 137

def self.scores() @scores end