升级版:根据CHR和POS匹配SNP数据

Usage,
transform_chrpos2rsid_pro(
  file_path,
  avsnpfile_dir,
  out_path = "./",
  out_prefix = "chrpos2rsid_"
)

参数

file_path

标准mr数据文件路径,数据中需要包含列名:SNP,effect_allele,other_allele,eaf,beta,se,pval,samplesize,chr,pos。

avsnpfile_dir

参考数据文件夹地址,请选择hg19或hg38参考基因组版本的注释文件夹

  • hg19注释文件:包含1-22、x、y、mt 注释数据

  • hg38注释文件:包含1-22、x、y、mt 注释数据

out_path

输出文件路径

out_prefix

输出文件前缀

匹配SNP的数据

Examples

transform_chrpos2rsid_pro(
file_path="./miss_snp.txt",
avsnpfile_dir="./hg19_avsnp150"
)