Skip to content

Commit

Permalink
Make the prognosis annotation mode generic
Browse files Browse the repository at this point in the history
  • Loading branch information
syamashiro28 committed Jun 10, 2021
1 parent b905f3b commit 937331d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions classification/brca_heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ suppressWarnings(annotation$days_to_death <- as.numeric(annotation$days_to_death
annotation[is.na(annotation)] <- 0


#add prognosis information
for (i in 1:nrow(annotation)){
if (annotation$days_to_death[i] == 0){
annotation$prognosis[i] <- 20
} else {
annotation$prognosis[i] <- floor(annotation$days_to_death[i]/365)
}
}


#heatmap
dynamics_info_zscore <- dynamics_info %>% column_to_rownames(var = "Sample") %>% scale()
Expand Down

0 comments on commit 937331d

Please sign in to comment.