Skip to content

Instantly share code, notes, and snippets.

@rtirrell
Created June 27, 2010 23:03
Show Gist options
  • Save rtirrell/455243 to your computer and use it in GitHub Desktop.
Save rtirrell/455243 to your computer and use it in GitHub Desktop.
scs = SubsetComparison.all # pk is "cid"
scs.map do |sc|
puts sc.genes.first
end
# => "SELECT `egid`, `cid`, `hgid`, `value` FROM `genes` WHERE `cid` IN (1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1073, 1074, 1075, 1076, 1077, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, ...);"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment