transform_chrpos2rsid_pro.Rd升级版:根据CHR和POS匹配SNP数据
transform_chrpos2rsid_pro(
file_path,
avsnpfile_dir,
out_path = "./",
out_prefix = "chrpos2rsid_"
)标准mr数据文件路径,数据中需要包含列名:SNP,effect_allele,other_allele,eaf,beta,se,pval,samplesize,chr,pos。
参考数据文件夹地址,请选择hg19或hg38参考基因组版本的注释文件夹
hg19注释文件:包含1-22、x、y、mt 注释数据
hg38注释文件:包含1-22、x、y、mt 注释数据
输出文件路径
输出文件前缀
匹配SNP的数据
transform_chrpos2rsid_pro(
file_path="./miss_snp.txt",
avsnpfile_dir="./hg19_avsnp150"
)