check_snps: Check if SNPs are good for use in analyses and mark them as...

View source: R/data_loading.r

check_snpsR Documentation

Check if SNPs are good for use in analyses and mark them as such.

Description

Check if SNPs are good for use in analyses and mark them as such.

Usage

check_snps(dat, analyses = c("mr", "coloc"), drop = T)

Arguments

dat

A data.frame of formatted data (exposure or outcome)

analyses

Which analyses should be checked?

drop

Whether to drop SNPs if they failed the check

Details

List of analyses and what data are checked for:

  • "MR"beta, SE, P value

  • "coloc"chromosome, position, P value

Value

Data.frame


jwr-git/mrpipeline documentation built on Oct. 2, 2022, 3:41 p.m.