【工具】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")

参考

相关推荐
计算机毕设定制辅导-无忧学长5 小时前
Grafana 与 InfluxDB 可视化深度集成(二)
信息可视化·数据分析·grafana
Jina AI7 小时前
回归C++: 在GGUF上构建高效的向量模型
人工智能·算法·机器学习·数据挖掘·回归
瓦特what?9 小时前
关于C++的#include的超超超详细讲解
java·开发语言·数据结构·c++·算法·信息可视化·数据挖掘
菜牙买菜10 小时前
Hicharts入门
前端·vue.js·数据可视化
鹏多多.13 小时前
flutter-使用device_info_plus获取手机设备信息完整指南
android·前端·flutter·ios·数据分析·前端框架
芦骁骏1 天前
自动处理考勤表——如何使用Power Query,步步为营,一点点探索自定义函数
数据分析·excel·powerbi
柑木1 天前
隐私计算-SecretFlow/SCQL-SCQL的两种部署模式
后端·安全·数据分析
计算机源码社1 天前
分享一个基于Hadoop的二手房销售签约数据分析与可视化系统,基于Python可视化的二手房销售数据分析平台
大数据·hadoop·python·数据分析·毕业设计项目·毕业设计源码·计算机毕设选题
楚韵天工1 天前
基于多分类的工业异常声检测及应用
人工智能·深度学习·神经网络·目标检测·机器学习·分类·数据挖掘
Kay_Liang1 天前
从聚合到透视:SQL 窗口函数的系统解读
大数据·数据库·sql·mysql·数据分析·窗口函数