A helper function correlates the gene expression within tumor samples with patient overall survival time from TCGA study groups

.KM_curve(gene, data, cutoff, tumor)

Arguments

gene

gene name, passed EIF argument from .plot_KM_RNAseq_TCGA()

data

df generated inside .plot_KM_RNAseq_TCGA()

cutoff

percentage of gene expression

tumor

all tumor types or specific type

Value

a KM plot

Details

It should not be used directly, only inside .plot_KM_RNAseq_TCGA() function.

Side effects: (1) KM curve plots for TCGA patients with gene expression in their tumors

See also

Other helper function for survival analysis: .multivariable_analysis(), .univariable_analysis()

Examples

if (FALSE) {
.KM_curve(gene = EIF, data = df, cutoff = cutoff, tumor = tumor)
}