two_sample_surv_setup: two-sample survival comparison dependent on mutation present...

View source: R/mut_stuff.R

two_sample_surv_setupR Documentation

two-sample survival comparison dependent on mutation present in gene

Description

two-sample survival comparison dependent on mutation present in gene

Usage

two_sample_surv_setup(sym, se, timevar = "OS.Time", eventvar = "OS.event")

Arguments

sym

character(1) HUGO symbol

se

a SummarizedExperiment instance with ragged mutation matrix as assay

timevar

character(1) variable found in colData(se) recording time to event

eventvar

character(1) variable found in colData(se) recording death or censoring

Examples

data(brcamutSE)
ss = two_sample_surv_setup("TTN", brcamutSE)
summary(ss)
plot(ss, lty=1:2, lwd=2)
legend(500,.4,  lty=1:2, lwd=2, legend=c("TTN WT", "TTN Mut"))

vjcitn/YESCDS documentation built on April 16, 2024, 1:03 p.m.