Name: opensnp_misc
Owner: openSNP
Description: A collection of secondary scripts for openSNP stuff (plotting etc.)
Created: 2015-06-25 13:26:30.0
Updated: 2016-02-09 03:03:58.0
Pushed: 2016-02-15 11:09:59.0
Homepage: null
Size: 225
Language: R
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A collection of secondary scripts for openSNP stuff (plotting etc.)
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
}