Assign snps to clumps based on LD after gwas
snp_make_clumps.RdAssign snps to clumps based on LD after gwas
Usage
snp_make_clumps(
geno.bed.filename,
geno.bed.dir,
gwas.res,
pvals.in.log = T,
window = 500,
ld.thresh = 0.5,
plink.path = NULL,
out.dir = NULL
)Arguments
- geno.bed.filename
character, filename of genotype bedfile, no .bed extension
- geno.bed.dir
character, path to directory where bed/bim/fam files exist, include trailing "/"
- gwas.res
data.frame, table of gwas results with columns (marker.ID, CHR, POS, PVAL)
- pvals.in.log
boolean, are pvalues in
gwas.resin -log10(p) or not- window
integer, window in kilobases either side of snp to look for snps in LD,
- ld.thresh
numeric, R2 threshold above which snps will be grouped
- plink.path
path to plink 2 executable
- out.dir
character, path to a temporary directory to output some intermediate files