当前位置: 首页 > news >正文

R语言孟德尔随机化研究工具包(1)---friendly2MR

 friendly2MR是孟德尔岁随机化研究中的一个重要补充工具,可以批量探索因素间的因果关系,以及快速填补缺失eaf的数据,但是存在细微差异需要注意。

remotes::install_github("xiechengyong123/friendly2MR")
library(friendly2MR)library(friendly2MR)
#Based on TwosampleMR, to investigate the causal relationship between multiexposure and outcome
a<-find_multiexposure_outcome(exposure =c("ieu-b-6","ieu-b-8","ieu-b-9"),outcome ="ieu-b-4965",write = T,p1 = 5e-08,clump = TRUE,p2 = 5e-08,r2 = 0.001,kb = 10000,LD = 0.8
)
#It can used to investigate the causal relationship between exposure and multioutcome: find_exposure_multioutcome
#It can also used to investigate the causal relationship between multiexposure and multioutcome:
memo<-find_multiexposure_multioutcome_epigraphdb(exposure =c("ukb-a-7"),outcome = c("ieu-a-7"),pval_threshold = 1e-05,write = T,save_path = "multi.csv"
)#Fill in the missing effect allele
library(TwoSampleMR)
aaa<-extract_instruments(outcomes='ukb-b-8755',clump=TRUE, r2=0.001,kb=10000,access_token=NULL)
eaf<-aaa$eaf.exposure
aaa$eaf.exposure<-NA
abc<-find_snp_add_eaf(exposure=aaa)
identical(eaf,abc$eaf.exposure)
#Please pay attention to differences
cb<-cbind(eaf,abc$eaf.exposure)#To find confounders
ee1<-de("ieu-a-7")
confound<-c("body mass index","Coronary heart disease")
expo_dat_nocon<-deletion_confounding_snp(confound = confound,exposure_dat = aaa,query_gene = NULL,query_region = NULL,catalogue = "GWAS",pvalue = 5e-08,proxies = "None",r2 = 0.8,build = 37,write = TRUE,save_path = "MR_ivs.csv"
)

http://www.lryc.cn/news/270202.html

相关文章:

  • CentOS7下使用Docker安装Nacos
  • 用 Node.js 写一个爬虫
  • 关于HTTPS
  • 安全配置审计概念、应用场景、常用基线及扫描工具
  • 【计算机毕业设计】python+django数码电子论坛系统设计与实现
  • 最优化方法Python计算:无约束优化应用——神经网络回归模型
  • Spring Data Redis对象缓存序列化问题
  • 自动驾驶代客泊车AVP巡航规划详细设计
  • 亚马逊云科技 re:Invent 2023 产品体验:亚马逊云科技产品应用实践 国赛选手带你看 Elasticache Serverless
  • Flink on K8S集群搭建及StreamPark平台安装
  • SpringBoot如何优雅的处理免登录接口
  • 元旦档首日票房超4.69亿,“下雪场尴尬”上热搜!
  • CentOS系统中设置IP地址的方式和存在的问题
  • 使用vmware,在ubuntu18.04中使用笔记本的摄像头
  • 中间件系列 - Redis入门到实战(高级篇-分布式缓存)
  • 使用Visual Studio调试VisionPro脚本
  • Ubuntu安装K8S的dashboard(管理页面)
  • zookeeper之集群搭建
  • 从0开始界面设计师 Qt Designer
  • Html / CSS刷题笔记
  • 关于“Python”的核心知识点整理大全51
  • Termius for Mac/Win:一站式终端模拟器、SSH 和 SFTP 客户端软件的卓越选择
  • vr体验馆用什么软件计时计费,如遇到停电软件程序如何恢复时间
  • HTML---JavaScript基础
  • 2023年03月17日_微软和谷歌办公AI的感慨
  • 2023年新一代开发者工具 Vue ,正式开源!
  • springboot(ssm校园组团平台 高校组团系统 Java系统
  • QT 利用开源7z 实现解压各种压缩包,包括进度条和文件名的显示(zip,7z,rar,iso等50多种格式)
  • androidStudio 没有新建flutter工程的入口?
  • 微信小程序开发系列-03全局配置中的“window”和“tabBar”