Description Usage Arguments Value Examples
View source: R/class-SurvivalExperiment.R
Constructor for SurvivalExperiment
Class
Builds a SurvivalExperiment
object, which is just a wrapper for a
SummarizedExperiment
with mandatory survival metadata numeric columns
survival_time
and event_occurred
.
1 2 3 4 5 | SurvivalExperiment(
...,
survival_time = "survival_time",
event_occurred = "event_occurred"
)
|
... |
|
survival_time |
A |
event_occurred |
A |
A SurvivalExperiment
object.
1 2 3 4 5 6 7 8 9 10 11 12 | data(sampleICGCmicro)
# build a SurvivalExperiment from raw data
ICGCmicro <- SurvivalExperiment(assays=assays(sampleICGCmicro),
rowData=rowData(sampleICGCmicro), colData=colData(sampleICGCmicro),
metadata=metadata(sampleICGCmicro), survival_time='survival_time',
event_occurred='event_occurred')
# build a SurvivalExperiment from an existig SummarizedExperment
ICGCmicroSumExp <- as(sampleICGCmicro, 'SummarizedExperiment')
ICGCmicro <- SurvivalExperiment(ICGCmicroSumExp,
survival_time='survival_time', event_occurred='event_occurred')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.