千家信息网

split_sample.r如何根据生存数据对样本随机分组

发表于:2025-11-18 作者:千家信息网编辑
千家信息网最后更新 2025年11月18日,这篇文章的内容主要围绕split_sample.r如何根据生存数据对样本随机分组进行讲述,文章内容清晰易懂,条理清晰,非常适合新手学习,值得大家去阅读。感兴趣的朋友可以跟随小编一起阅读吧。希望大家通过
千家信息网最后更新 2025年11月18日split_sample.r如何根据生存数据对样本随机分组

这篇文章的内容主要围绕split_sample.r如何根据生存数据对样本随机分组进行讲述,文章内容清晰易懂,条理清晰,非常适合新手学习,值得大家去阅读。感兴趣的朋友可以跟随小编一起阅读吧。希望大家通过这篇文章有所收获!

split_sample.r根据生存数据对样本随机划分训练集测试集

使用方法:

usage: split_sample.r [-h] -i input [-e event] [-t time] [-p propotion]                      [-o outdir] [-n name]The complete data set is randomly divided into training set and test setoptional arguments:  -h, --help            show this help message and exit  -i input, --input input                        input matrix data [required]  -e event, --event event                        input event list ,default:EVENT  -t time, --time time  input time list,default:TIME  -p propotion, --propotion propotion                        input propotion of train set to test set,default:0.6  -o outdir, --outdir outdir                        output file directory [default cwd]  -n name, --name name  output file name prefix [default demo]

参数说明:

-i 输入矩阵文件

-e 文件中生存事件列名,默认为EVENT

-t 文件中生存时间列名,默认为TIME

-p 根据生存数据划分的训练集与测试集之间的比例,默认为6:4

-o 输出文件路径

-n 指定输出文件名字

使用举例:

Rscript split_sample.r -i ../project/zx-20210908-381-TCGA_CHOL/01_meta/survival_time.tsv

感谢你的阅读,相信你对"split_sample.r如何根据生存数据对样本随机分组"这一问题有一定的了解,快去动手实践吧,如果想了解更多相关知识点,可以关注网站!小编会继续为大家带来更好的文章!

0