Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 412 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 412 Bytes

opensnp_misc

A collection of secondary scripts for openSNP stuff (plotting etc.)

Plotting scripts

The plots assume txt files with genotypes/users/phenotypes of this format:

User.id\tUser.created_at\n

So for example this minimal script creates the needed users.txt in Ruby on Rails:

File.open("users.txt", "w"){ |file| User.find_each do |u| file.write("#{u.id}\t#{u.created_at}\n") end }