Wrapper for clump function using local plink binary and ld reference dataset
ld_clump_local(dat, clump_kb, clump_r2, clump_p, bfile, plink_bin)
data frame of clumped variants
Dataframe. Must have a variant name column (variant
) and pval column called pval
.
If id
is present then clumping will be done per unique id.
Clumping kb window. Default is very strict, 10000
Clumping r2 threshold. Default is very strict, 0.001
Clumping sig level for index variants. Default = 1
(i.e. no threshold)
If this is provided then will use the API. Default = NULL
Specify path to plink binary. Default = NULL
.
See https://github.com/explodecomputer/plinkbinr for convenient access to plink binaries