Skip to content

Instantly share code, notes, and snippets.

Avatar

jsmp ymer

View GitHub Profile
View gist:c129d419df88ff957513bc6e2fbda2b8
using Distributions
using GLM
using RCall
using Random
Random.seed!(2)
n = 10000
ses = collect(1:n)
pgs = rand(Normal(), n)
View make24.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ymer
ymer / repository.md
Last active Aug 28, 2017
Bartholin biomedicine script repository
View repository.md

##Munge sumstats Takes an unprocessed GWAS sumstat file, performs QC and changes it to a standard format. Location: https://github.com/ymer/ldsc Details at: ? Contact: Jonatan

View Challenge #298 [Easy] Too many Parentheses.jl
using Combinatorics
function find_matching_pairs(s)
l, starts = [], []
for i in 1:length(s)
if s[i] == "("
push!(starts, i)
elseif s[i] == ")"
push!(l, (pop!(starts), i))
end
You can’t perform that action at this time.