Sha256: 971afdd41ea7679d9cbfe7ffc1491a4d8d75e71cb0926471eee54e11e3f1bb85

Contents?: true

Size: 1.18 KB

Versions: 15

Compression:

Stored size: 1.18 KB

Contents

#
# = sample/demo_gff1.rb - very simple demonstration of Bio::GFF
#
# Copyright::  Copyright (C) 2003, 2005
#              Toshiaki Katayama <k@bioruby.org>
#              2006  Jan Aerts <jan.aerts@bbsrc.ac.uk>
#              2008  Naohisa Goto <ng@bioruby.org>
# License::    The Ruby License
#
#
# == Description
#
# Very simple demonstration of Bio::GFF, parser classes for GFF formatted
# text.
#
# == Usage
#
# Simply run this script.
#
#  $ ruby demo_gff1.rb
#
# == To do
#
# Bio::GFF and related classes have many functions, and we should write
# more example and/or demonstration codes.
#
# == Development information
#
# The code was moved from lib/bio/db/gff.rb.
#

require 'bio'

#if __FILE__ == $0
  begin
    require 'pp'
    alias p pp
  rescue LoadError
  end

  this_gff =  "SEQ1\tEMBL\tatg\t103\t105\t.\t+\t0\n"
  this_gff << "SEQ1\tEMBL\texon\t103\t172\t.\t+\t0\n"
  this_gff << "SEQ1\tEMBL\tsplice5\t172\t173\t.\t+\t.\n"
  this_gff << "SEQ1\tnetgene\tsplice5\t172\t173\t0.94\t+\t.\n"
  this_gff << "SEQ1\tgenie\tsp5-20\t163\t182\t2.3\t+\t.\n"
  this_gff << "SEQ1\tgenie\tsp5-10\t168\t177\t2.1\t+\t.\n"
  this_gff << "SEQ1\tgrail\tATG\t17\t19\t2.1\t-\t0\n"
  p Bio::GFF.new(this_gff)
#end

Version data entries

15 entries across 15 versions & 1 rubygems

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