rbsurv方法筛选基因
2018-09-01 本文已影响73人
一路向前_莫问前程_前程似锦
try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("rbsurv")
library(rbsurv)
data(gliomaSet)
gliomaSet
x <- exprs(gliomaSet)
x <- log2(x)
time <- gliomaSet$Time
status <- gliomaSet$Status
x是行代表基因,列代表样本

###################################################
code chunk number 2: rbsurv.Rnw:200-201
###################################################
fit <- rbsurv(time=time, status=status, x=x, method="efron", max.n.genes=20)
###################################################
code chunk number 3: rbsurv.Rnw:213-214
###################################################
fit$model