Sha256: 1af407d819e588fd266b4076e08849c3f7fe6211cd9799b8db2126286ee5e17e

Contents?: true

Size: 1.07 KB

Versions: 33

Compression:

Stored size: 1.07 KB

Contents

#
# bio/util/color_scheme/taylor.rb - Taylor color codings for amino acids
#
# Author::    Trevor Wennblom  <mailto:trevor@corevx.com>
# Copyright:: Copyright (c) 2005-2007 Midwinter Laboratories, LLC (http://midwinterlabs.com)
# License::   The Ruby License
#
#  $Id: taylor.rb,v 1.4 2007/04/05 23:35:41 trevor Exp $
#

require 'bio/util/color_scheme'

module Bio::ColorScheme
  class Taylor < Simple #:nodoc:

    #########
    protected
    #########

    @colors = {
      'A' => 'CCFF00',
      'C' => 'FFFF00',
      'D' => 'FF0000',
      'E' => 'FF0066',
      'F' => '00FF66',
      'G' => 'FF9900',
      'H' => '0066FF',
      'I' => '66FF00',
      'K' => '6600FF',
      'L' => '33FF00',
      'M' => '00FF00',
      'N' => 'CC00FF',
      'P' => 'FFCC00',
      'Q' => 'FF00CC',
      'R' => '0000FF',
      'S' => 'FF3300',
      'T' => 'FF6600',
      'U' => 'FFFFFF',
      'V' => '99FF00',
      'W' => '00CCFF',
      'Y' => '00FFCC',

      'B' => 'FFFFFF',
      'X' => 'FFFFFF',
      'Z' => 'FFFFFF',
    }
    @colors.default = 'FFFFFF'  # return white by default

  end
end

Version data entries

33 entries across 33 versions & 5 rubygems

Version Path
bio-2.0.5 lib/bio/util/color_scheme/taylor.rb
bio-2.0.4 lib/bio/util/color_scheme/taylor.rb
bio-2.0.3 lib/bio/util/color_scheme/taylor.rb
bio-2.0.2 lib/bio/util/color_scheme/taylor.rb
bio-2.0.1 lib/bio/util/color_scheme/taylor.rb
bio-2.0.0 lib/bio/util/color_scheme/taylor.rb
bio-1.6.0.pre.20181210 lib/bio/util/color_scheme/taylor.rb
bio-1.5.2 lib/bio/util/color_scheme/taylor.rb
bio-1.5.1 lib/bio/util/color_scheme/taylor.rb
bio-1.5.0 lib/bio/util/color_scheme/taylor.rb
bioruby-bio-1.2.9.9001 lib/bio/util/color_scheme/taylor.rb
bioruby-bio-1.2.9.9501 lib/bio/util/color_scheme/taylor.rb
bioruby-bio-1.3.0.5000 lib/bio/util/color_scheme/taylor.rb
bioruby-bio-1.3.0.9901 lib/bio/util/color_scheme/taylor.rb
bioruby-bio-1.3.0 lib/bio/util/color_scheme/taylor.rb
bioruby-bio-1.3.1.5000 lib/bio/util/color_scheme/taylor.rb
jandot-bio-1.2.1 lib/bio/util/color_scheme/taylor.rb
ngoto-bio-1.2.9.9001 lib/bio/util/color_scheme/taylor.rb
ngoto-bio-1.2.9.9501 lib/bio/util/color_scheme/taylor.rb
ngoto-bio-1.3.0.5000 lib/bio/util/color_scheme/taylor.rb