Sha256: 5d0374ea992c87e9c08d3dc63629ec5a2aa3f6fa2610cdd08f5b288f18418591

Contents?: true

Size: 954 Bytes

Versions: 15

Compression:

Stored size: 954 Bytes

Contents

#
# = sample/demo_nucleicacid.rb - demonstration of Bio::NucleicAcid
#
# Copyright::	Copyright (C) 2001, 2005
#		Toshiaki Katayama <k@bioruby.org>
# License::	The Ruby License
#
#
# == Description
#
# Demonstration of Bio::NucleicAcid, data related to nucleic acids.
#
# == Usage
#
# Simply run this script.
#
#  $ ruby demo_nucleicacid.rb
#
# == Development information
#
# The code was moved from lib/bio/data/na.rb.
#

require 'bio'

#if __FILE__ == $0

  puts "### na = Bio::NucleicAcid.new"
  na = Bio::NucleicAcid.new

  puts "# na.to_re('yrwskmbdhvnatgc')"
  p na.to_re('yrwskmbdhvnatgc')

  puts "# Bio::NucleicAcid.to_re('yrwskmbdhvnatgc')"
  p Bio::NucleicAcid.to_re('yrwskmbdhvnatgc')

  puts "# na.weight('A')"
  p na.weight('A')

  puts "# Bio::NucleicAcid.weight('A')"
  p Bio::NucleicAcid.weight('A')

  puts "# na.weight('atgc')"
  p na.weight('atgc')

  puts "# Bio::NucleicAcid.weight('atgc')"
  p Bio::NucleicAcid.weight('atgc')

#end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bio-2.0.5 sample/demo_nucleicacid.rb
bio-2.0.4 sample/demo_nucleicacid.rb
bio-2.0.3 sample/demo_nucleicacid.rb
bio-2.0.2 sample/demo_nucleicacid.rb
bio-2.0.1 sample/demo_nucleicacid.rb
bio-2.0.0 sample/demo_nucleicacid.rb
bio-1.6.0.pre.20181210 sample/demo_nucleicacid.rb
bio-1.5.2 sample/demo_nucleicacid.rb
bio-1.5.1 sample/demo_nucleicacid.rb
bio-1.5.0 sample/demo_nucleicacid.rb
bio-1.4.3.0001 sample/demo_nucleicacid.rb
bio-1.4.3 sample/demo_nucleicacid.rb
bio-1.4.2 sample/demo_nucleicacid.rb
bio-1.4.1 sample/demo_nucleicacid.rb
bio-1.4.0 sample/demo_nucleicacid.rb