增加列,计算F值及R2

Usage,
append_col_Fvalue(
  file_path = "",
  samplesize = NULL,
  method = "all",
  out_path = "./",
  out_prefix = "Fval"
)

参数

file_path

用于计算F值的文件地址

samplesize

样本量,如果输入文件中缺少samplesize或者samplesize.exposure对应列数据,需提供样本量信息

method

用于计算F值的方法,填写1、2、3或者all,默认为all。

out_path

输出文件的路径

out_prefix

输出文件的前缀

添加F和R2数据

Examples

append_col_Fvalue(file_path = "F:/data_clean/eQTLgen1_MRinput_filtered_1e3/eqtl-a-ENSG00000269925-1e-3-filtered.txt")
append_col_Fvalue(file_path = "d:/MR/AF/mr_results_2023_11_28/decode2021/table_s1_harmonise_data.csv")