summaryrefslogtreecommitdiff
path: root/scripts/hansen2csv.rb
blob: 3c8c3e18829284012bffad26e6d7a1c1a623e296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby
require 'csv'
require_relative '../../lazar/lib/lazar.rb'

i = 0
CSV.foreach(ARGV[0]) do |row|
  if i > 0
    c = OpenTox::Compound.from_smiles(row[5]).smiles
    puts ["hansen_#{row[0]}",c, row[2]].join ","
  end
  i += 1
end