openSNP/opensnp_misc

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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

}


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.