Sha256: 7716f364760283313fcd39d9b86f34ba6dafed0799855657cc834982b3316f32

Contents?: true

Size: 1.5 KB

Versions: 15

Compression:

Stored size: 1.5 KB

Contents

#
# = sample/demo_kegg_glycan.rb - demonstration of Bio::KEGG::GLYCAN
#
# Copyright::  Copyright (C) 2004 Toshiaki Katayama <k@bioruby.org>
# License::    The Ruby License
#
#
# == Description
#
# Demonstration of Bio::KEGG::GLYCAN, a parser class for the KEGG GLYCAN
# glycome informatics database.
#
# == Usage
#
# Specify files containing KEGG GLYCAN data.
#
#  $ ruby demo_kegg_glycan.rb files...
#
# == Example of running this script
#
# Download test data.
#
#  $ ruby -Ilib bin/br_biofetch.rb glycan G00001 > G00001.glycan
#  $ ruby -Ilib bin/br_biofetch.rb glycan G00024 > G00024.glycan
#
# Run this script.
#
#  $ ruby -Ilib sample/demo_kegg_glycan.rb G00001.glycan G00024.glycan
#
# == Development information
#
# The code was moved from lib/bio/db/kegg/glycan.rb and modified.
#

require 'bio'

Bio::FlatFile.foreach(Bio::KEGG::GLYCAN, ARGF) do |gl|
  #entry = ARGF.read	# gl:G00024
  #gl = Bio::KEGG::GLYCAN.new(entry)

  puts "### gl = Bio::KEGG::GLYCAN.new(str)"
  puts "# gl.entry_id"
  p gl.entry_id
  puts "# gl.name"
  p gl.name
  puts "# gl.composition"
  p gl.composition
  puts "# gl.mass"
  p gl.mass
  puts "# gl.keggclass"
  p gl.keggclass
  #puts "# gl.bindings"
  #p gl.bindings
  puts "# gl.compounds"
  p gl.compounds
  puts "# gl.reactions"
  p gl.reactions
  puts "# gl.pathways"
  p gl.pathways
  puts "# gl.enzymes"
  p gl.enzymes
  puts "# gl.orthologs"
  p gl.orthologs
  puts "# gl.references"
  p gl.references
  puts "# gl.dblinks"
  p gl.dblinks
  puts "# gl.kcf"
  p gl.kcf

  puts "=" * 78
end

Version data entries

15 entries across 15 versions & 1 rubygems

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