Assign GWAS SNPs to LD blocks

assign_snp_locus(sumstats, LD_Blocks)

Arguments

sumstats

A data frame of GWAS summary statistics. It is required to have the following columns: chr, pos, snp (rsID).

LD_Blocks

A data frame of LD blocks with four columns, 'chr', 'start', 'end', and 'locus' (LD block indices).

Value

A data frame with summary statistics with assigned locus ID.