assign_lead_SNP: Assign lead SNP

assign_lead_snpR Documentation

Assign lead SNP

Description

Assign lead SNP by creating a new boolean column "leadSNP" indicating whether a SNP has the smallest p-value ("P). If multiple rows have the same p-value, the one with the largest effective size ("Effect") is used as the lead SNP.

Usage

assign_lead_snp(dat, grouping_vars = "Locus", verbose = TRUE)

Arguments

dat

Fine-mapping data.table.

grouping_vars

Column names to group by.

verbose

Print messages.

Value

Modified data.table.

Examples

dat <- echodata::assign_lead_snp(dat = echodata::BST1)

RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.