Sha256: fefe1bc83a4f906a7dccfaad344c07d3ea7de309c6bc736223d5d22bf7178998

Contents?: true

Size: 766 Bytes

Versions: 1

Compression:

Stored size: 766 Bytes

Contents

#
# = bio/db/gff/gff3.rb - GFF database class
#
# Copyright::  Copyright (C) 2010
#              Pjotr Prins <pjotr.prins@thebird.nl>
# License::    The Ruby License

# Create a GFF3 file parser

require 'bio/db/gff/digest/gffinmemory'
require 'bio/db/gff/digest/gffnocache'

module Bio
  module GFFbrowser
    class GFF3
      attr_reader :assembler

      include Digest

      # Initialize a GFF parser
      def initialize filename, options = {}
        cache_recs    = options[:cache_records]
        @assembler = 
          case cache_recs
            when :cache_none 
              NoCache.new(filename, options)
            else
              InMemory.new(filename, options)  # default 
          end
      end

    end # GFF3
  end # GFFbrowser
end # Bio

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bio-gff3-0.8.5 lib/bio/db/gff/gff3.rb