univariate_cox.r 临床数据单因素cox回归分析

单因素cox回归分析

使用方法:

指定单个变量做cox回归分析,可以是临床数据


$Rscript $scriptdir/univariate_cox.r -h usage: /share/nas1/huangls/test/TCGA_immu/scripts/univariate_cox.r [-h] -i data -t time -e event -v variate [variate ...] [-b blocksize] [-o outdir] [-p prefix] unvariate cox regression optional arguments: -h, --help show this help message and exit -i data, --data data input data file path[required] -t time, --time time set suvival time column name [required] -e event, --event event set event column name must 0 or 1 code format [required] -v variate [variate ...], --variate variate [variate ...] variate for cox analysis [required] -b blocksize, --blocksize blocksize Number of variables Parallel to test in each [default 2] -o outdir, --outdir outdir output file directory [default cwd] -p prefix, --prefix prefix out file name prefix [default cox]


使用举例:


Rscript $scriptdir/univariate_cox.r -i nomogram_metadata.tsv -e EVENT -t TIME \
  -v gender  riskScore age_at_index    ajcc_pathologic_stage \
  -o univariate_cox \
  -p  univariate_cox

参数说明:

-i 输入生存数据与临床数据 


barcodeTIMEEVENTFGRCD38ITGALCX3CL1CEACAM21MATKCD79BMMP25
TCGA-B7-A5TK-01A-12R-A36D-31288016.3440886.8677240.26903603.01321.8685362.283423.45319813.72829
TCGA-BR-7959-01A-11R-2343-131010011.9673915.794517.35856626.913532.5719170.8641161.8799573.451148
TCGA-IN-8462-01A-11R-2343-1357205.3508463.1113423.76912520.222380.6108390.5197762.8221921.106563
TCGA-CG-4443-01A-01R-1157-1391201.538020.8629552.3735119.040971.0921270.7603481.9265920.878735
TCGA-KB-A93J-01A-11R-A39E-311124015.2401613.304738.0859114.152953.4835593.1929513.65174210.43186
TCGA-HU-A4H3-01A-21R-A251-3188206.2617612.6751737.0258864.0502710.5841591.0393361.9792142.312993
TCGA-RD-A8MV-01A-11R-A36D-313720027.0741520.1588534.9130934.718214.1131122.61555716.5194617.72674
TCGA-VQ-A91X-01A-12R-A414-3128911.0623410.7520182.3805134.4158150.5181420.2121971.2392030.582114


结果展示:


Variable Term Beta HR HRlower HRupper P
riskScore riskScore 1.312475 3.715356 2.329977 5.924468 3.53E-08
ajcc_pathologic_stage ajcc_pathologic_stageStage IV 1.419089 4.133353 1.943828 8.789154 0.000227
ajcc_pathologic_stage ajcc_pathologic_stageStage III 0.855199 2.351843 1.203748 4.594953 0.012327
age_at_index age_at_index 0.018124 1.018289 1.000732 1.036154 0.04111
ajcc_pathologic_stage ajcc_pathologic_stageStage II 0.533618 1.70509 0.838157 3.468717 0.140829
gender gendermale 0.217816 1.243358 0.857962 1.801874 0.249868


R包 survival 完成分析

脚本获取与使用课程:https://study.163.com/course/introduction/1211864801.htm?share=1&shareId=1030291076

  • 发表于 2021-08-30 17:16
  • 阅读 ( 4239 )
  • 分类:临床医学

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

702 篇文章

作家榜 »

  1. omicsgene 702 文章
  2. 安生水 350 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. xun 82 文章
  6. rzx 78 文章
  7. 红橙子 78 文章
  8. CORNERSTONE 72 文章