【工具】CRAmed微生物数据的中介分析

news/2025/2/22 8:43:02/

在这里插入图片描述

文章目录

    • 介绍
    • 使用
      • 安装
      • 教程
      • 案例
    • 参考

介绍

许多微生物组研究揭示了微生物组与人类健康和疾病之间的重要联系。这些发现促使研究人员探索微生物组在人类复杂特征和疾病中的因果作用。然而,微生物组数据的复杂性给统计分析和因果关系的解释带来了挑战。 引入了一个新的统计框架,CRAmed,用于推断微生物组在治疗和结果之间的中介作用。CRAmed通过将自然间接效应分解为两部分,分别对应于微生物的存在-缺失和丰度,提高了中介分析的可解释性。综合仿真表明,与现有的中介分析方法相比,CRAmed在召回率、精度和F1得分方面表现优异,具有显著的鲁棒性。此外,两个实际数据应用说明了该方法的有效性和可解释性。我们的研究表明,CRAmed有望揭示微生物组的介导作用,并了解影响宿主健康的因素。

Abstract
Motivation
Numerous microbiome studies have revealed significant associations between the microbiome and human health and disease. These findings have motivated researchers to explore the causal role of the microbiome in human complex traits and diseases. However, the complexities of microbiome data pose challenges for statistical analysis and interpretation of causal effects.

Results
We introduced a novel statistical framework, CRAmed, for inferring the mediating role of the microbiome between treatment and outcome. CRAmed improved the interpretability of the mediation analysis by decomposing the natural indirect effect into two parts, corresponding to the presence–absence and abundance of a microbe, respectively. Comprehensive simulations demonstrated the superior performance of CRAmed in Recall, precision, and F1 score, with a notable level of robustness, compared to existing mediation analysis methods. Furthermore, two real data applications illustrated the effectiveness and interpretability of CRAmed. Our research revealed that CRAmed holds promise for uncovering the mediating role of the microbiome and understanding of the factors influencing host health.

使用

在这里插入图片描述

安装

Before you install the CRAmed, some other libraries are required to install, see the requirement.R:

library(MASS)
library(plyr)
library(glmnet)
library(pscl)

Then you can install CRAmed from github with:

install.packages("devtools")  
devtools::install_github("liudoubletian/CRAmed") 
library(CRAmed)  

教程

The details of the manual and the code used to generate each figure in the manuscript are provided in the fold ../vignettes.

Here, we show a brief example.

案例

library(CRAmed); packageVersion("CRAmed")#Simulate the ZINB data
otu_n <- 50;num <- 50
set.seed(1)
sim_zinb.mat <- sim_zinb(otu_n, num, alpha=-2, beta=2, gamma=-2)#Detect the mediators by CRAmed
cramed.res <- CRAmed(M_mat=sim_zinb.mat$M_mat, Y=sim_zinb.mat$Y, Exposure=sim_zinb.mat$trt, n.perm=10, CI=TRUE)
cramed.res

参考

  • CRAmed: a conditional randomization test for high-dimensional mediation analysis in sparse microbiome data
  • https://github.com/liudoubletian/CRAmed

http://www.ppmy.cn/news/1573180.html

相关文章

【私人笔记】Web前端

*内容网址1Vue官网Vue.js - 渐进式 JavaScript 框架 | Vue.js2Next.js 官网&#xff08;英文&#xff09;Next.js by Vercel - The React Framework3Next.js 文档&#xff08;中文&#xff09;简介 | Next.js 中文文档4React官网&#xff08;中文&#xff09;https://react.doc…

NAT(网络地址转换)技术详解:网络安全渗透测试中的关键应用与防御策略

目录 NAT的作用 NAT类型 NAT工作流程示例 NAT 转换技术的原理 源地址转换&#xff08;SNAT&#xff0c;Source NAT&#xff09;&#xff1a; 目标地址转换&#xff08;DNAT&#xff0c;Destination NAT&#xff09;&#xff1a; 端口地址转换&#xff08;PAT&#xff0c…

基于Python的Django+Hive白酒数据推荐系统+毕业论文+指导搭建视频

技术栈&#xff1a;pythondjangohivemysqlvue 当人们打开系统的网址后&#xff0c;首先看到的就是首页界面。在这里&#xff0c;人们能够看到系统的导航条&#xff0c;通过导航条导航进入各功能展示页面进行操作。在个人中心页面可以对个人中心、修改密码、我的收藏等进行详细操…

作为高级测试工程师,如何用AI进行进一步提升?DeepSpeek的回答

作为高级测试工程师&#xff0c;利用AI技术进行职业提升可以从以下几个方向入手&#xff0c;结合行业趋势、技术工具和实际场景进行突破&#xff1a; 一、AI在测试中的核心应用场景 智能测试用例生成与优化 应用场景&#xff1a;通过AI分析需求文档、历史缺陷数据、用户行为日志…

基于 Filebeat 的日志收集

在现代分布式系统中&#xff0c;日志数据作为关键的监控与故障排查依据&#xff0c;越来越受到重视。本文将深入探讨 Filebeat 的技术原理、配置方法及在 ELK&#xff08;Elasticsearch、Logstash、Kibana&#xff09;生态系统中的应用&#xff0c;帮助开发者构建高效、稳定的日…

51单片机-按键

1、独立按键 1.1、按键介绍 轻触开关是一种电子开关&#xff0c;使用时&#xff0c;轻轻按开关按钮就可使开关接通&#xff0c;当松开手时&#xff0c;开关断开。 1.2、独立按键原理 按键在闭合和断开时&#xff0c;触点会存在抖动现象。P2\P3\P1都是准双向IO口&#xff0c;…

项目2 数据可视化--- 第十五章 生成数据

数据分析是使用代码来探索数据内的规律和关联。 数据可视化是通过可视化表示来 探索和呈现数据集内的规律。 好的数据可视化&#xff0c;可以发现数据集中未知的规律和意义。 一个流行的工具是Matplotlib&#xff0c;他是一个数据绘图库&#xff1b; 还有Plotly包&#xff…

Web前端开发练习3

代码&#xff1a; demo01.综合案例 <!DOCTYPE html> <html lang"zh"> <head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>综合案例</…