Skip to content

Instantly share code, notes, and snippets.

@michaelbarton
Created July 8, 2011 21:17
Show Gist options
  • Save michaelbarton/1072848 to your computer and use it in GitHub Desktop.
Save michaelbarton/1072848 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'fastercsv'
require 'pp'
map = FCSV.open('addition.csv',:headers => true).inject(Hash.new) do |hash,row|
if row['Gene ']
hash['250327' + row['R124#']] = row['Gene ']
end
hash
end
File.open('annotation/names.yml','w').puts YAML.dump(map)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment