Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to randomly group samples according to survival data by split_sample.r

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

The content of this article mainly focuses on how split_sample.r randomly groups the samples according to the survival data. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!

Split_sample.r randomly divides the training set and test set according to the survival data.

Usage: 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 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]

Parameter description:

-I input matrix file

Name of the survival event column in the-e file. Default is EVENT.

The name of the time to live column in the-t file. Default is TIME.

-p the ratio of training sets to test sets based on survival data, default is 6:4

-o output file path

-n specify the output file name

Use example: Rscript split_sample.r-I.. / project/zx-20210908-381-TCGA_CHOL/01_meta/survival_time.tsv thank you for reading, I believe you have some understanding of "how split_sample.r randomly groups samples according to survival data", go to practice quickly, if you want to know more related knowledge points, you can follow the website! The editor will continue to bring you better articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report