Skip to content

Commit

Permalink
update colour for lin & assignment thresh = 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Geuenich committed May 19, 2021
1 parent 92f95bf commit 971f092
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion R/colours.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@
#' @export
jackson_basel_colours <- function() {
pal <- c("#8B5B42", "#AF4EA9", "#FFB60A", "#0AC694", "#0024DD", "#6CC1FF",
"#0496FF", "#1DA05B", "#E11E00", "#A78882")
"#0496FF", "#1DA05B", "#E11E00", "#A78882", "#BD93D8")

celltype_colours <- c(
"Stromal" = pal[1],
"B cells" = pal[2],
"Other immune" = pal[2],
"T cells" = pal[3],
"Treg" = pal[3],
"Macrophage" = pal[4],#
"Epithelial (basal)" = pal[5],
"Epithelial (luminal)" = pal[6],
"Epithelial (other)" = pal[7],
"Epithelial" = pal[6],
"Epithelial proliferative" = pal[7],
"Epithelial immunosuppressive" = pal[5],
"Epithelial I-P" = pal[11],
"Monocyte" = pal[8], #
"Endothelial" = pal[9],
"Fibroblasts" = pal[10],
Expand Down Expand Up @@ -68,6 +74,7 @@ cohort_colours <- function(){
cohort_cols <- c(
"Basel" = pal[1],
"Zurich1" = pal[2],
"Zurich" = pal[2],
"Wagner" = pal[3],
"Schapiro" = pal[4]
)
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ to_csv <- function(sce,
#' Get cell type assignments given probability matrix
#'
#' @export
get_celltypes <- function(prob_mat, thresh = 0.7) {
get_celltypes <- function(prob_mat, thresh = 0.5) {
if(is.data.frame(prob_mat)) {
prob_mat <- as.matrix(prob_mat)
}
Expand Down

0 comments on commit 971f092

Please sign in to comment.