reassign_lead_snps: Reassign lead SNPs

View source: R/reassign_lead_snps.R

reassign_lead_snpsR Documentation

Reassign lead SNPs

Description

Reassign lead SNPs per group.

Usage

reassign_lead_snps(
  merged_dat,
  SNP = "SNP",
  P = "P",
  Effect = "Effect",
  grouping_vars = c("Dataset", "Locus"),
  nThread = 1,
  verbose = TRUE
)

Arguments

merged_dat

Merged, multi-locus fine-mapping results data.

SNP

Name of the SNP column.

P

Name of the p-value column.

Effect

Name of the Effect column.

grouping_vars

Column names to group by when assigning lead SNPs.

nThread

Number of threads to parallelise across.

verbose

Print messages.

Examples

 
merged_dat <- get_Nalls2019_merged()
merged_dat2 <- reassign_lead_snps(merged_dat = merged_dat)

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