summaryrefslogtreecommitdiff
path: root/scripts/noael_loael2mmol.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/noael_loael2mmol.rb')
-rwxr-xr-xscripts/noael_loael2mmol.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/noael_loael2mmol.rb b/scripts/noael_loael2mmol.rb
index 3d79aae..299434c 100755
--- a/scripts/noael_loael2mmol.rb
+++ b/scripts/noael_loael2mmol.rb
@@ -15,5 +15,7 @@ csv_in.each do |line|
end
end
data.sort!{|a,b| a[1] <=> b[1]}
-puts ["SMILES","LOAEL","Dataset"].join ","
-puts data.collect{|row| row.join ","}.join "\n"
+File.open(File.join("data","swiss.csv","w+")) do |f|
+ f.puts ["SMILES","LOAEL","Dataset"].join ","
+ f.puts data.collect{|row| row.join ","}.join "\n"
+end