Skip to content

Commit

Permalink
Update 04-survival-curves_efs.R
Browse files Browse the repository at this point in the history
  • Loading branch information
aadamk authored Oct 9, 2024
1 parent caf9cdf commit 584def2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ custom_table_theme <- theme_survminer(base_size = 12) +
theme(axis.title.x = element_blank(), axis.title.y = element_blank())

# survival curves stratified by RNA-derived molecular subtype
cat('Generating Kaplan Meier survival plots by molecular subtypes')
surv_data$molecular_subtype <- factor(surv_data$molecular_subtype, levels = sort(unique(surv_data$molecular_subtype)))
fit <- survival::survfit(formula = Surv(as.numeric(EFS_days), EFS_status) ~ molecular_subtype,
data = surv_data)
Expand Down Expand Up @@ -128,6 +129,7 @@ print(p)
dev.off()

# survival curves stratified by Methylation-derived molecular subtype (v11)
cat('Generating Kaplan Meier survival plots by DKFZ v11 subtypes')
surv_data$dkfz_v11_methylation_subclass <- factor(surv_data$dkfz_v11_methylation_subclass, levels = sort(unique(
surv_data$dkfz_v11_methylation_subclass
)))
Expand Down Expand Up @@ -169,6 +171,7 @@ print(p)
dev.off()

# survival curves stratified by Methylation-derived molecular subtype (v12)
cat('Generating Kaplan Meier survival plots by DKFZ v12 subtypes')
surv_data$dkfz_v12_methylation_subclass <- factor(surv_data$dkfz_v12_methylation_subclass, levels = sort(unique(
surv_data$dkfz_v12_methylation_subclass
)))
Expand Down Expand Up @@ -209,6 +212,7 @@ print(p)
dev.off()

# survival curves stratified by Multi-modal subtypes
cat('Generating Kaplan Meier survival plots by multi-omic subtypes')
surv_data$mm_cluster <- factor(surv_data$mm_cluster, levels = sort(as.numeric(unique(
surv_data$mm_cluster
))))
Expand Down

0 comments on commit 584def2

Please sign in to comment.