Class: GenomerPluginView::Mapping

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

Instance Method Summary collapse

Instance Method Details

#runObject



5
6
7
8
9
10
11
12
# File 'lib/genomer-plugin-view/mapping.rb', line 5

def run
  original = annotations.map(&:id).map(&:clone)
  updated  = annotations(GenomerPluginView.convert_command_line_flags(flags)).map(&:id)

  original.zip(updated).
    map{|i| i.join("\t") }.
    join("\n")
end