From 103cf0236b374186afd5dc944c8b1184d101f7f6 Mon Sep 17 00:00:00 2001 From: "Chenyang(Skylar) Li" <86435219+CSkylarL@users.noreply.github.com> Date: Wed, 16 Aug 2023 10:45:05 -0500 Subject: [PATCH] Update Fig1_Prognostic_bias.R --- Fig1_Prognostic_bias.R | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Fig1_Prognostic_bias.R b/Fig1_Prognostic_bias.R index 1241e6f..d8690c9 100755 --- a/Fig1_Prognostic_bias.R +++ b/Fig1_Prognostic_bias.R @@ -80,7 +80,16 @@ cox_img_res <- data.frame(HR=hr, PV=pval, QV=QV) row.names(cox_img_res) <- row.names(mygrp) # b) example(Related to Figure 1D and S2)---------------------------------------- -good.gene <- rownames(resdata)[which(resdata$group == "Favorable")] +tmp <- cox_img_res +tmp$group <- as.factor( + ifelse( + tmp$QV < 0.05, + ifelse(tmp$HR < 1, "Favorable", "Unfavorable"), + "NS" + ) +) + +good.gene <- rownames(tmp)[which(tmp$group == "Favorable")] good.exp <- TimiPrePropress(marker = good.gene,rna = SKCM06rna, cohort = rownames(info), log = T,GMNorm = T)