本地提取多因素暴露数据

Usage,
mr_extract_exposure_local_mv(
  local_exp_path = c(),
  exp_p = 5e-08,
  clump_r2 = 0.001,
  clump_kb = 10000,
  clump_method = 1,
  bfile = NULL,
  plink_exe = get_plink_exe()
)

参数

local_exp_path

本地暴露数据列表

exp_p

指定与暴露相关的p值的阈值,默认是5e-8。通过该阈值,筛选与暴露相关的snp。

clump_r2

ieugwasr::ld_clump函数中的clump_kb

clump_kb

ieugwasr::ld_clump函数中的clump_r2

clump_method

clump使用方法,默认 1。 1,基于pval;2,基于1/zscore;3,当pval==0使用1/zscore正排序A1,当pval>0使用pval正排序A2,按照A1A2拼接,并给一个分数

bfile

bfile指定参考文件的位置

plink_exe

plink,默认内置最新plink工具。

多因素暴露数据

Examples

exposure <- mr_extract_exposure_local_mv(
local_exp_path = c("./ieu-a-300.txt","./test/ieu-a-3001.txt"),
bfile = "./data/eur/EUR")