Class: GenomerPluginView::Gff

Inherits:
Genomer::Plugin
  • Object
show all
Defined in:
lib/genomer-plugin-view/gff.rb

Constant Summary collapse

DEFAULT =
'.'

Instance Method Summary collapse

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
# File 'lib/genomer-plugin-view/gff.rb', line 7

def run
  options = GenomerPluginView.convert_command_line_flags(flags)
  annotations(options).
    map{|i| i.seqname = options[:identifier] || DEFAULT; i}.
    map(&:to_s).
    map(&:strip).
    unshift("##gff-version 3").
    join("\n") + "\n"
end