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)
gene name, passed EIF
argument from .plot_KM_RNAseq_TCGA()
df
generated inside .plot_KM_RNAseq_TCGA()
percentage of gene expression
all tumor types or specific type
a KM plot
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
Other helper function for survival analysis:
.multivariable_analysis()
,
.univariable_analysis()
if (FALSE) {
.KM_curve(gene = EIF, data = df, cutoff = cutoff, tumor = tumor)
}