Method: Bio::MAF::Access.file

Defined in:
lib/bio/maf/index.rb

.file(maf, index = nil, options = {}) ⇒ Access

Provides access to a single MAF file. If this file is not indexed, it will be fully parsed to create a temporary in-memory index. For large MAF files or ones which will be used multiple times, this is inefficient, and an index file should be created with maf_index(1).

Parameters:

  • maf (String)

    path to MAF file

  • index (String) (defaults to: nil)

    Kyoto Cabinet index file

  • options (Hash) (defaults to: {})

    parser options

Returns:



108
109
110
111
112
113
# File 'lib/bio/maf/index.rb', line 108

def self.file(maf, index=nil, options={})
  o = options.dup
  o[:maf] = maf
  o[:index] = index if index
  self.new(o)
end