Reassign lead SNPs per group.
reassign_lead_snps(
merged_dat,
SNP = "SNP",
P = "P",
Effect = "Effect",
grouping_vars = c("Dataset", "Locus"),
nThread = 1,
verbose = TRUE
)
Merged, multi-locus fine-mapping results data.
Name of the SNP column.
Name of the p-value column.
Name of the Effect column.
Column names to group by when assigning lead SNPs.
Number of threads to parallelise across.
Print messages.
merged_dat <- get_Nalls2019_merged()
merged_dat2 <- reassign_lead_snps(merged_dat = merged_dat)
#> Reassigning lead SNPs by: Dataset, Locus