class Bio::MAF::Header

A MAF header, containing the variable-value pairs from the first line of the file as well as the alignment parameters. @api public

Attributes

alignment_params[RW]

Alignment parameters from the MAF header. @return [Hash]

vars[RW]

Variable-value pairs from the ##maf line @return [Hash]

Public Class Methods

default() click to toggle source

Create a default header with version=1. @return [Header]

# File lib/bio/maf/maf.rb, line 28
def Header.default
  Header.new({:version => 1}, nil)
end
new(vars, params) click to toggle source
# File lib/bio/maf/maf.rb, line 32
def initialize(vars, params)
  @vars = vars
  @alignment_params = params
end

Public Instance Methods

scoring() click to toggle source

The optional scoring parameter, if present. @return [String]

# File lib/bio/maf/maf.rb, line 45
def scoring
  vars[:scoring]
end
version() click to toggle source

The required version parameter. @return [String]

# File lib/bio/maf/maf.rb, line 39
def version
  vars[:version]
end