Skip to content

Commit

Permalink
Update Fig1_Prognostic_bias.R
Browse files Browse the repository at this point in the history
  • Loading branch information
CSkylarL authored Aug 16, 2023
1 parent f2a2642 commit 103cf02
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Fig1_Prognostic_bias.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 103cf02

Please sign in to comment.