Sha256: 826ecc72308f879c325103e36a5dbe51fe67ec5b9fcf32e73c133ceeaf80376e

Contents?: true

Size: 690 Bytes

Versions: 33

Compression:

Stored size: 690 Bytes

Contents

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

require 'bio/util/color_scheme'

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

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

    @colors = {
      'A' => '64F73F',
      'C' => 'FFB340',
      'G' => 'EB413C',
      'T' => '3C88EE',
      'U' => '3C88EE',
    }
    @colors.default = 'FFFFFF'  # return white by default

  end
  NA = Nuc = Nucleotide
end

Version data entries

33 entries across 33 versions & 5 rubygems

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