summaryrefslogtreecommitdiff
path: root/scripts/lazar-cv-predictions.rb
blob: 9f94776996522d0adf5d95f0af11dee212f89f5e (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env ruby

thresh = ARGV[1].to_f
thresh ||= 0
File.readlines(ARGV[0]).each do |pred|
  smi,c,maxsim = pred.split(",")
  puts [smi,c].join(",") if maxsim.to_f > thresh
end