assign_lead_snp | R Documentation |
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.
assign_lead_snp(dat, grouping_vars = "Locus", verbose = TRUE)
dat |
Fine-mapping data.table. |
grouping_vars |
Column names to group by. |
verbose |
Print messages. |
Modified data.table.
dat <- echodata::assign_lead_snp(dat = echodata::BST1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.