assign_snp_locus: Assign GWAS SNPs to LD blocks

View source: R/gwas.R

assign_snp_locusR Documentation

Assign GWAS SNPs to LD blocks

Description

Assign GWAS SNPs to LD blocks

Usage

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.


kevinlkx/mapgen documentation built on March 31, 2024, 11:03 p.m.