【工具】BioPred一个用于精准医疗中生物标志物分析的 R 软件包

介绍

R 语言包 BioPred 提供了一系列用于精准医疗中的亚组分析和生物标志物分析的工具。它借助极端梯度提升(XGBoost)算法,并结合倾向得分加权和 A 学习方法,帮助优化个体化治疗规则,从而简化亚组识别过程。BioPred 还能够识别预测性生物标志物,并获取其重要性排名。此外,该包还提供了针对生物标志物分析定制的图形图表。这一工具使临床研究人员能够加深对药物开发中生物标志物和患者群体的理解。

The R package BioPred offers a suite of tools for subgroup and biomarker analysis in precision medicine. Leveraging Extreme Gradient Boosting (XGBoost) along with propensity score weighting and A-learning methods, BioPred facilitates the optimization of individualized treatment rules to streamline subgroup identification. BioPred also enables the identification of predictive biomarkers and obtaining their importance rankings. Moreover, the package provides graphical plots tailored for biomarker analysis. This tool enables clinical researchers seeking to enhance their understanding of biomarkers and patient population in drug development.

代码

https://github.com/deeplearner0731/BioPred

文章目录

案例

安装

r 复制代码
install.packages("BioPred")

devtools::install_github("deeplearner0731/BioPred")

运行代码: https://cran.r-project.org/web/packages/BioPred/vignettes/Tutorial.html

r 复制代码
model = XGBoostSub_bin(X, y, trt, pi,Loss_type = "A_learning", params = list(learning_rate = 0.01, max_depth = 1, lambda = 5, tree_method = 'hist'), nrounds = 300, disable_default_eval_metric = 0, verbose = FALSE)

get_subgroup_results(model, X)

eval_metric_bin(model, X, y, pi, trt, Loss_type = "A_learning")

predictive_biomarker_imp(model)

fixcut_bin(yvar="y", xvar="x1", dir=">", cutoffs=c(0.1,0.3,0.5), data=tutorial_data, method="Fisher", yvar.display="y", xvar.display="Biomarker x1", vert.x=F)

res=cut_perf(yvar="y", censorvar=NULL, xvar="x1", cutoff=c(0.5), dir=">", xvars.adj=NULL, data=tutorial_data, type="c", yvar.display="y", xvar.display="Biomarker x1")

res = subgrp_perf_pred(yvar="y.time", censorvar="y.event", grpvar="biogroup", grpname=c("biomarker_positive",'biomarker_negative'),trtvar="treatment_categorical", trtname=c("Placebo", "Treatment"), xvars.adj=NULL,data=tutorial_data, type="s")

gam_ctr_plot(yvar="y.time", censorvar="y.event", xvar= "x1", xvars.adj=NULL,sxvars.adj=NULL,trtvar="trt",type="s",data=tutorial_data, k=5, title="Group Contrast", ybreaks=NULL, xbreaks=NULL, rugcol.var=NULL,link.scale=T, prt.sum=T, prt.chk=F, outlier.rm=F)

roc_bin_plot(yvar="y", xvars="x1", dirs="auto", data=tutorial_data, yvar.display="y.bin", xvars.display="Biomarker x1")

参考

相关推荐
weixin_519535777 小时前
从ChatGPT到新质生产力:一份数据驱动的AI研究方向指南
人工智能·深度学习·机器学习·ai·chatgpt·数据分析·aigc
青云交13 小时前
Java 大视界 -- Java 大数据在智能电网电力市场交易数据分析与策略制定中的关键作用
数据分析·数据采集·数据存储·交易策略·智能电网·java 大数据·电力市场交易
cx330上的猫15 小时前
价值1w的数据分析课知识点汇总-excel使用(第一篇)
数据挖掘·数据分析·excel
兮兮能吃能睡15 小时前
R语言术语(2)
开发语言·r语言
CodeJourney.16 小时前
SQL提数与数据分析指南
数据库·信息可视化·数据分析
聊聊MES那点事17 小时前
电脑零配件行业MES系统:快速实现全过程信息溯源
信息可视化·数据分析·数据可视化·mes
Hs_QY_FX18 小时前
Python 分类模型评估:从理论到实战(以信用卡欺诈检测为例)
人工智能·python·机器学习·数据挖掘·多分类评估
成为深度学习高手19 小时前
DGCN+informer分类预测模型
人工智能·分类·数据挖掘
小火柴12320 小时前
利用R绘制箱线图
开发语言·r语言
天桥下的卖艺者21 小时前
R语言手搓一个计算生存分析C指数(C-index)的函数算法
c语言·算法·r语言