fromto-bioinforbook
引入R包
library("fromto")
准备示例数据
n_samples = 100 data = data.frame( time = sample(1:500, n_samples, replace = TRUE), # survival time status = sample(0:1, n_samples, replace = TRUE), # survival(0 = not occur,1 = occur) gene1 = rnorm(n_samples), # gene1 expression gene2 = rnorm(n_samples), # gene2 expression gene3 = rnorm(n_samples), # gene3 expression gene4 = rnorm(n_samples), # gene4 expression gene5 = rnorm(n_samples), # gene5 expression gene6 = rnorm(n_samples), # gene6 expression gene7 = rnorm(n_samples), # gene7 expression gene8 = rnorm(n_samples), # gene8 expression gene9 = rnorm(n_samples), # gene9 expression gene10 = rnorm(n_samples), # gene10 expression gene11 = rnorm(n_samples) # gene11 expression )
cplot1执行gene1与gene2的相关性分析
cplot1(data = data, GeneName1 = "gene1", GeneName2 = "gene2", DatasetName = "custom", method = "pearson")
cplot2执行gene1与gene2的相关性分析
cplot2(data = data, GeneName1 = "gene1", GeneName2 = "gene2", DatasetName = "custom", method = "pearson")