File: demo_litdb.rb

package info (click to toggle)
bioruby 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,328 kB
  • ctags: 7,787
  • sloc: ruby: 61,539; xml: 3,383; makefile: 58; sh: 4
file content (42 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# = sample/demo_litdb.rb - demonstration of Bio::LITDB
#
# Copyright::  Copyright (C) 2001 Toshiaki Katayama <k@bioruby.org>
# License::    The Ruby License
#
#
# == Description
#
# Demonstration of Bio::LITDB, LITDB literature database parser class.
#
# == Requirements
#
# Internet connection and/or OBDA (Open Bio Database Access) configuration.
#
# == Usage
#
# Simply run this script.
#
#  $ ruby demo_litdb.rb
#
# == Development information
#
# The code was moved from lib/bio/db/litdb.rb.
#

require 'bio'

#if __FILE__ == $0

  entry = Bio::Fetch.query('litdb', '0308004') 
  puts entry
  p Bio::LITDB.new(entry).reference

  entry = Bio::Fetch.query('litdb', '0309094')
  puts entry
  p Bio::LITDB.new(entry).reference

  entry = Bio::Fetch.query('litdb', '0309093')
  puts entry
  p Bio::LITDB.new(entry).reference
#end